Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
18718a50
Commit
18718a50
authored
7 years ago
by
Michael Lange
Browse files
Options
Download
Email Patches
Plain Diff
Check for a case-sensitive or lowercase header value
parent
b7248824
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ui/app/adapters/watchable.js
+3
-1
ui/app/adapters/watchable.js
with
3 additions
and
1 deletion
+3
-1
ui/app/adapters/watchable.js
+
3
-
1
View file @
18718a50
...
...
@@ -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
);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment