mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 20:39:17 +08:00
Add missing headers() function to restangular's IResponse
This commit is contained in:
@@ -92,7 +92,8 @@ myApp.controller('TestCtrl', (
|
||||
Restangular.setMethodOverriders(["put", "patch"]);
|
||||
|
||||
Restangular.setErrorInterceptor(function (response) {
|
||||
console.error('' + response.status + ' ' + response.data);
|
||||
let location: string = response.headers('Location');
|
||||
console.error('' + response.status + ' ' + response.data + ' ' + location);
|
||||
});
|
||||
|
||||
Restangular.setRequestSuffix('.json');
|
||||
|
||||
Reference in New Issue
Block a user