aboutsummaryrefslogtreecommitdiffstats
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorCaitlin Potter2014-01-28 11:49:16 -0500
committerCaitlin Potter2014-02-04 10:59:44 -0500
commit5850e61c82b203bd2cccf92d17e58a4ab6f0b134 (patch)
tree5d610c8d78bded4149db0296432a9a8eab6ea286 /CHANGELOG.md
parentd2e4e499862aeca157dbe7a7422c465e7c79205e (diff)
downloadangular.js-5850e61c82b203bd2cccf92d17e58a4ab6f0b134.tar.bz2
docs(CHANGELOG): add breaking change notice for 1.2.9 $http default headers change
Add a mention for the slightly breaking change introduced in 1.2.9. Closes #6022
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3885b445..3e635e9f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -82,6 +82,30 @@
([4ae3184c](https://github.com/angular/angular.js/commit/4ae3184c5915aac9aa00889aa2153c8e84c14966),
[#4278](https://github.com/angular/angular.js/issues/4278), [#4225](https://github.com/angular/angular.js/issues/4225))
+## Breaking Changes
+
+- **$http:** due to [e1cfb195](https://github.com/angular/angular.js/commit/e1cfb1957feaf89408bccf48fae6f529e57a82fe),
+ it is now necessary to seperately specify default HTTP headers for PUT, POST and PATCH requests, as these no longer share a single object.
+
+ To migrate your code, follow the example below:
+
+ Before:
+
+ // Will apply to POST, PUT and PATCH methods
+ $httpProvider.defaults.headers.post = {
+ "X-MY-CSRF-HEADER": "..."
+ };
+
+ After:
+
+ // POST, PUT and PATCH default headers must be specified seperately,
+ // as they do not share data.
+ $httpProvider.defaults.headers.post =
+ $httpProvider.defaults.headers.put =
+ $httpProviders.defaults.headers.patch = {
+ "X-MY-CSRF-HEADER": "..."
+ };
+
<a name="1.2.8"></a>
# 1.2.8 interdimensional-cartography (2014-01-10)