eclipsesource / eclipsesource/tabris-js

XHR filters multiple HTTP response headers of the same type

Open
#914 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

If an XHR response contains multiple HTTP headers of the same type, only one of them is available in `XMLHttpRequest` and `fetch` APIs. For example, `response.headers.getAll('Set-Cookie')` will return an array of length 1, even if there are multiple `Set-Cookie` headers in the response.

The reason is that headers are currently passed to the JS side as an object, hence multiple headers will overwrite one another.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.