Skip to content

Commit

Permalink
Override Link always
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Mar 3, 2016
1 parent 83888c3 commit 8c34589
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions angular-hal.js
Expand Up @@ -292,9 +292,7 @@ angular.module('angular-hal', [])
if (!options.headers.Accept) options.headers.Accept = 'application/hal+json,application/json';

if(method === 'LINK' || method === 'UNLINK') {
if (!options.headers.Link) {
options.headers.Link = [];
}
options.headers.Link = [];
angular.forEach(data, function(link) {
options.headers.Link.push(link.toString());
});
Expand Down

0 comments on commit 8c34589

Please sign in to comment.