Unverified Commit 3f53c27c authored by Michael Lange's avatar Michael Lange Committed by GitHub
Browse files

Merge pull request #4068 from hashicorp/b-ui-firefox-index-watching

UI: Check for a case-sensitive or lowercase header value
parents 3e33d9aa 18718a50
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment