From 514dc0eb16a8fe3fa7c44094d743714f73754321 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 12 Jul 2013 17:42:37 -0700 Subject: fix($http): allow interceptors to completely override headers Closes #2770 --- src/ng/http.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/ng/http.js b/src/ng/http.js index d81b7912..a44da3a4 100644 --- a/src/ng/http.js +++ b/src/ng/http.js @@ -666,6 +666,7 @@ function $HttpProvider() { var serverRequest = function(config) { + headers = config.headers; var reqData = transformData(config.data, headersGetter(headers), config.transformRequest); // strip content-type if data is undefined -- cgit v1.2.3