From eb8881f4d7b54bce41f37f297ecc5e238934bded Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Tue, 17 Dec 2019 21:16:26 +1100 Subject: [PATCH] chore: set X-Interface header to identify requests from the HAL Browser --- vendor/hal-browser/js/hal/http/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/hal-browser/js/hal/http/client.js b/vendor/hal-browser/js/hal/http/client.js index d89cbdbd7..f108177b3 100644 --- a/vendor/hal-browser/js/hal/http/client.js +++ b/vendor/hal-browser/js/hal/http/client.js @@ -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) {