File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 82
82
([ 4ae3184c] ( https://github.com/angular/angular.js/commit/4ae3184c5915aac9aa00889aa2153c8e84c14966 ) ,
83
83
[ #4278 ] ( https://github.com/angular/angular.js/issues/4278 ) , [ #4225 ] ( https://github.com/angular/angular.js/issues/4225 ) )
84
84
85
+ ## Breaking Changes
86
+
87
+ - ** $http:** due to [ e1cfb195] ( https://github.com/angular/angular.js/commit/e1cfb1957feaf89408bccf48fae6f529e57a82fe ) ,
88
+ it is now necessary to seperately specify default HTTP headers for PUT, POST and PATCH requests, as these no longer share a single object.
89
+
90
+ To migrate your code, follow the example below:
91
+
92
+ Before:
93
+
94
+ // Will apply to POST, PUT and PATCH methods
95
+ $httpProvider.defaults.headers.post = {
96
+ "X-MY-CSRF-HEADER": "..."
97
+ };
98
+
99
+ After:
100
+
101
+ // POST, PUT and PATCH default headers must be specified seperately,
102
+ // as they do not share data.
103
+ $httpProvider.defaults.headers.post =
104
+ $httpProvider.defaults.headers.put =
105
+ $httpProviders.defaults.headers.patch = {
106
+ "X-MY-CSRF-HEADER": "..."
107
+ };
108
+
85
109
<a name =" 1.2.8 " ></a >
86
110
# 1.2.8 interdimensional-cartography (2014-01-10)
87
111
You can’t perform that action at this time.
0 commit comments