Skip to content

Commit 63b9b15

Browse files
petebacondarwinCameron Knight
authored and
Cameron Knight
committed
docs($httpProvider): revert removal of comments
Related to angular#7782
1 parent 4d83e60 commit 63b9b15

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ng/http.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ function $HttpProvider() {
115115
* - **`defaults.headers.post`**
116116
* - **`defaults.headers.put`**
117117
* - **`defaults.headers.patch`**
118-
* */
118+
**/
119119
var defaults = this.defaults = {
120+
// transform incoming response data
120121
transformResponse: [function(data) {
121122
if (isString(data)) {
122123
// strip json vulnerability protection prefix
@@ -132,6 +133,7 @@ function $HttpProvider() {
132133
return isObject(d) && !isFile(d) && !isBlob(d) ? toJson(d) : d;
133134
}],
134135

136+
// default headers
135137
headers: {
136138
common: {
137139
'Accept': 'application/json, text/plain, */*'

0 commit comments

Comments
 (0)