angular-cn/modules/@angular/http/src
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
..
backends fix(platform-browser-dynamic): Rename CACHED_TEMPLATE_PROVIDER to RESOURCE_CACHE_PROVIDER (#10866) 2016-08-17 09:24:44 -07:00
base_request_options.ts refactor(http): share 'body' logic between Request and Response 2016-07-12 18:01:06 -07:00
base_response_options.ts feat(http): add support for blob as a response type (#10190) 2016-07-21 13:44:38 -07:00
body.ts fix(http): return empty string if no body is present (#10668) 2016-08-11 21:40:18 -07:00
enums.ts feat(http): add support for blob as a response type (#10190) 2016-07-21 13:44:38 -07:00
facade repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
headers.ts fix(http): deep copy for constructor using existing Headers (#10679) 2016-08-18 15:00:44 -07:00
http.ts feat(http): add options method to Http (#10540) 2016-08-08 09:15:13 -07:00
http_utils.ts refactor(http): share 'body' logic between Request and Response 2016-07-12 18:01:06 -07:00
index.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
interfaces.ts feat(http): add support for blob as a response type (#10190) 2016-07-21 13:44:38 -07:00
package.json repackaging: all the repackaging changes squashed 2016-05-01 20:51:00 -07:00
static_request.ts feat(http): add content-type override support for http request (#10211) 2016-07-22 08:37:32 -07:00
static_response.ts chore(imports): don't import ExceptionHandler from facade (#10620) 2016-08-10 15:55:18 -07:00
url_search_params.ts fix: String.split(str, n) stops after n separator (#10408) 2016-08-01 11:33:35 -07:00