Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 3b5ba87

Browse files
refactor($http): drop superfluous argument to sendReq
Closes #10360
1 parent e50002b commit 3b5ba87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ng/http.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ function $HttpProvider() {
771771
}
772772

773773
// send request
774-
return sendReq(config, reqData, headers).then(transformResponse, transformResponse);
774+
return sendReq(config, reqData).then(transformResponse, transformResponse);
775775
};
776776

777777
var chain = [serverRequest, undefined];
@@ -1004,11 +1004,12 @@ function $HttpProvider() {
10041004
* !!! ACCESSES CLOSURE VARS:
10051005
* $httpBackend, defaults, $log, $rootScope, defaultCache, $http.pendingRequests
10061006
*/
1007-
function sendReq(config, reqData, reqHeaders) {
1007+
function sendReq(config, reqData) {
10081008
var deferred = $q.defer(),
10091009
promise = deferred.promise,
10101010
cache,
10111011
cachedResp,
1012+
reqHeaders = config.headers,
10121013
url = buildUrl(config.url, config.params);
10131014

10141015
$http.pendingRequests.push(config);

0 commit comments

Comments
 (0)