We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d83e60 commit 63b9b15Copy full SHA for 63b9b15
src/ng/http.js
@@ -115,8 +115,9 @@ function $HttpProvider() {
115
* - **`defaults.headers.post`**
116
* - **`defaults.headers.put`**
117
* - **`defaults.headers.patch`**
118
- * */
+ **/
119
var defaults = this.defaults = {
120
+ // transform incoming response data
121
transformResponse: [function(data) {
122
if (isString(data)) {
123
// strip json vulnerability protection prefix
@@ -132,6 +133,7 @@ function $HttpProvider() {
132
133
return isObject(d) && !isFile(d) && !isBlob(d) ? toJson(d) : d;
134
}],
135
136
+ // default headers
137
headers: {
138
common: {
139
'Accept': 'application/json, text/plain, */*'
0 commit comments