From 7bab2a1f23a62496ae3885aa3c7098e58051a886 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Wed, 28 Mar 2018 16:10:09 -0700 Subject: [PATCH] Check for a case-sensitive or lowercase header value --- ui/app/adapters/watchable.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/adapters/watchable.js b/ui/app/adapters/watchable.js index 8e6ad273c..47cacb3c7 100644 --- a/ui/app/adapters/watchable.js +++ b/ui/app/adapters/watchable.js @@ -114,7 +114,9 @@ export default ApplicationAdapter.extend({ }, handleResponse(status, headers, payload, requestData) { - const newIndex = headers['x-nomad-index']; + // Some browsers lowercase all headers. Others keep them + // case sensitive. + const newIndex = headers['x-nomad-index'] || headers['X-Nomad-Index']; if (newIndex) { this.get('watchList').setIndexFor(requestData.url, newIndex); }