Commit 18718a50 authored by Michael Lange's avatar Michael Lange
Browse files

Check for a case-sensitive or lowercase header value

parent b7248824
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