Skip to content
Permalink
Browse files

refactor($http): drop superfluous argument to sendReq

Closes #10360
  • Loading branch information
pkozlowski-opensource committed Dec 7, 2014
1 parent e50002b commit 3b5ba8779730c21897c2f18f5daaec9bc5550951
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/ng/http.js
@@ -771,7 +771,7 @@ function $HttpProvider() {
}

// send request
return sendReq(config, reqData, headers).then(transformResponse, transformResponse);
return sendReq(config, reqData).then(transformResponse, transformResponse);
};

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

$http.pendingRequests.push(config);

0 comments on commit 3b5ba87

Please sign in to comment.
You can’t perform that action at this time.