angular-cn/modules/@angular/http/test
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 chore(facade): remove most facade/async functions 2016-08-05 12:26:28 -07:00
base_request_options_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
headers_spec.ts fix(http): deep copy for constructor using existing Headers (#10679) 2016-08-18 15:00:44 -07:00
http_spec.ts refactor(http): Removed deprecated HTTP_PROVIDERS and JSONP_PROVIDERS (#10864) 2016-08-17 07:43:31 -07:00
static_request_spec.ts fix(http): return empty string if no body is present (#10668) 2016-08-11 21:40:18 -07:00
static_response_spec.ts chore(facade): remove most facade/async functions 2016-08-05 12:26:28 -07:00
url_search_params_spec.ts fix(http): URLSearchParams.clone propagate the QueryEncoder (#9900) 2016-07-30 19:01:20 -07:00