Merge pull request #4068 from hashicorp/b-ui-firefox-index-watching
UI: Check for a case-sensitive or lowercase header value
This commit is contained in:
commit
0cdfee7155
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue