-
Problem report
-
Resolution: Unresolved
-
Critical
-
None
-
7.0.18, 7.4.2, 8.0.0alpha1 (master)
-
Support backlog
Steps to reproduce:
- Configure monitoring of the openstack with OpenStack by HTTP
- get not working item Get access token and service catalog, since it returns x-subject-token
Modify:
try { token = headers["X-Subject-Token"][0];
with this one:
try { token = headers["x-subject-token"][0];
And it starts working.
Expected:
According to the HTTP specification (RFC 7230), header field names are case-insensitive.
Issue itself: parseHttpData function on this line:
token = headers["X-Subject-Token"][0];
Something like this:
for (const key in headers) {
if (key.toLowerCase() === 'x-subject-token') {
if (Array.isArray(headers[key]) && headers[key].length > 0) {
token = headers[key][0];
}
break;
}
}
- is duplicated by
-
ZBX-27032 Not possible retrieve only header from JavaScript request.head() method
-
- IN MANUAL TESTING
-