From 8cfaeb0e82257891940124e5dd4395953277628c Mon Sep 17 00:00:00 2001 From: Dmitry Kichenko Date: Fri, 1 Nov 2013 10:59:33 -0400 Subject: docs($http): note that default $http headers can be overridden Closes #4750 --- src/ng/http.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/ng/http.js') diff --git a/src/ng/http.js b/src/ng/http.js index 9f7880f7..780f5561 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -290,8 +290,9 @@ function $HttpProvider() { * with the lowercased HTTP method name as the key, e.g. * `$httpProvider.defaults.headers.get = { 'My-Header' : 'value' }. * - * Additionally, the defaults can be set at runtime via the `$http.defaults` object in the same - * fashion. + * The defaults can also be set at runtime via the `$http.defaults` object in the same + * fashion. In addition, you can supply a `headers` property in the config object passed when + * calling `$http(config)`, which overrides the defaults without changing them globally. * * * # Transforming Requests and Responses -- cgit v1.2.3