Skip to content

Commit

Permalink
chore: set X-Interface header to identify requests from the HAL Browser
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Dec 17, 2019
1 parent 0c95878 commit eb8881f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vendor/hal-browser/js/hal/http/client.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
HAL.Http.Client = function(opts) {
this.vent = opts.vent;
$.ajaxSetup({ headers: { 'Accept': 'application/hal+json, application/json, */*; q=0.01' } });
$.ajaxSetup({ headers: { 'Accept': 'application/hal+json, application/json, */*; q=0.01', 'X-Interface': 'HAL Browser' } });
};

HAL.Http.Client.prototype.get = function(url) {
Expand Down

0 comments on commit eb8881f

Please sign in to comment.