Skip to content

Commit 150e7cd

Browse files
committed
Full request interceptor call
1 parent e396a17 commit 150e7cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/restangular.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ module.provider('Restangular', function() {
467467
return resource;
468468
}
469469

470-
BaseCreator.prototype.resource = function(current, $http, $httpConfig, callHeaders, callParams, what, etag, operation) {
470+
BaseCreator.prototype.resource = function(current, $http, localHttpConfig, callHeaders, callParams, what, etag, operation) {
471471

472472
var params = _.defaults(callParams || {}, this.config.defaultRequestParams.common);
473473
var headers = _.defaults(callHeaders || {}, this.config.defaultHeaders);
@@ -496,7 +496,7 @@ module.provider('Restangular', function() {
496496

497497
url += this.config.suffix;
498498
}
499-
var localHttpConfig = $httpConfig;
499+
500500
current[this.config.restangularFields.httpConfig] = undefined;
501501

502502

@@ -911,7 +911,7 @@ module.provider('Restangular', function() {
911911
callObj = stripRestangular(callObj);
912912
}
913913
var request = config.fullRequestInterceptor(callObj, operation, route, fetchUrl,
914-
headers || {}, resParams || {});
914+
headers || {}, resParams || {}, this[config.restangularFields.httpConfig] || {});
915915

916916
var okCallback = function(response) {
917917
var resData = response.data;

0 commit comments

Comments
 (0)