Add missing headers() function to restangular's IResponse

This commit is contained in:
Lukas Sembera
2015-09-20 19:43:16 +02:00
parent 273a567b0a
commit f38b15bc38
2 changed files with 3 additions and 1 deletions

View File

@@ -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');