eclipsesource / eclipsesource/tabris-js
XHR filters multiple HTTP response headers of the same type
Open
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
Assessment
This issue has not been assessed yet.