@@ -467,7 +467,7 @@ module.provider('Restangular', function() {
467
467
return resource ;
468
468
}
469
469
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 ) {
471
471
472
472
var params = _ . defaults ( callParams || { } , this . config . defaultRequestParams . common ) ;
473
473
var headers = _ . defaults ( callHeaders || { } , this . config . defaultHeaders ) ;
@@ -496,7 +496,7 @@ module.provider('Restangular', function() {
496
496
497
497
url += this . config . suffix ;
498
498
}
499
- var localHttpConfig = $httpConfig ;
499
+
500
500
current [ this . config . restangularFields . httpConfig ] = undefined ;
501
501
502
502
@@ -911,7 +911,7 @@ module.provider('Restangular', function() {
911
911
callObj = stripRestangular ( callObj ) ;
912
912
}
913
913
var request = config . fullRequestInterceptor ( callObj , operation , route , fetchUrl ,
914
- headers || { } , resParams || { } ) ;
914
+ headers || { } , resParams || { } , this [ config . restangularFields . httpConfig ] || { } ) ;
915
915
916
916
var okCallback = function ( response ) {
917
917
var resData = response . data ;
0 commit comments