angular-cn/modules/@angular/http
Marcus Krahl 654ff6115a fix(http): deep copy for constructor using existing Headers (#10679)
When creating a new Headers object using an existing Headers object
the existing Headers map is copied by reference. Therefore adding a
new Header value to the new Headers object also added this value to
the existing Headers object which is not in accordance with the
spec.
This commit alters the constructor to create a deep copy of existing
Headers maps and therefore unlink existing Headers from new Headers.

Closes #6845

BREAKING CHANGE: 

any code which relies on the fact that a newly
created Headers object is referencing an existing Headers map is
now broken, but that should normally not be the case since this
behavior is not documented and not in accordance with the spec.
2016-08-18 15:00:44 -07:00
..
src fix(http): deep copy for constructor using existing Headers (#10679) 2016-08-18 15:00:44 -07:00
test fix(http): deep copy for constructor using existing Headers (#10679) 2016-08-18 15:00:44 -07:00
testing fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER (#10866) 2016-08-17 09:24:44 -07:00
http.ts refactor(http): Removed deprecated HTTP_PROVIDERS and JSONP_PROVIDERS (#10864) 2016-08-17 07:43:31 -07:00
index.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
package.json fix(http): remove peerDep on @angular/common 2016-06-08 12:20:42 -07:00
rollup.config.js build: fix source map paths for npm packages 2016-05-03 13:36:33 -06:00
testing.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
tsconfig-es5.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00
tsconfig-es2015.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00