docs($httpProvider): revert removal of comments

Related to #7782
This commit is contained in:
Peter Bacon Darwin
2014-07-03 13:29:03 +01:00
parent 2d6ee651b1
commit 9bc807783f

View File

@@ -115,8 +115,9 @@ function $HttpProvider() {
* - **`defaults.headers.post`**
* - **`defaults.headers.put`**
* - **`defaults.headers.patch`**
* */
**/
var defaults = this.defaults = {
// transform incoming response data
transformResponse: [function(data) {
if (isString(data)) {
// strip json vulnerability protection prefix
@@ -132,6 +133,7 @@ function $HttpProvider() {
return isObject(d) && !isFile(d) && !isBlob(d) ? toJson(d) : d;
}],
// default headers
headers: {
common: {
'Accept': 'application/json, text/plain, */*'