@@ -1103,7 +1103,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
1103
1103
}
1104
1104
1105
1105
// TODO(vojta): change params to: method, url, data, headers, callback
1106
- function $httpBackend ( method , url , data , callback , headers , timeout , withCredentials ) {
1106
+ function $httpBackend ( method , url , data , callback , headers , timeout , withCredentials , responseType ) {
1107
1107
var xhr = new MockXhr ( ) ,
1108
1108
expectation = expectations [ 0 ] ,
1109
1109
wasExpected = false ;
@@ -1163,7 +1163,7 @@ function createHttpBackendMock($rootScope, $delegate, $browser) {
1163
1163
// if $browser specified, we do auto flush all requests
1164
1164
( $browser ? $browser . defer : responsesPush ) ( wrapResponse ( definition ) ) ;
1165
1165
} else if ( definition . passThrough ) {
1166
- $delegate ( method , url , data , callback , headers , timeout , withCredentials ) ;
1166
+ $delegate ( method , url , data , callback , headers , timeout , withCredentials , responseType ) ;
1167
1167
} else throw new Error ( 'No response defined !' ) ;
1168
1168
return ;
1169
1169
}
0 commit comments