Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headers not showing on IE11 #6

Open
tenorius opened this issue Feb 10, 2019 · 1 comment
Open

Headers not showing on IE11 #6

tenorius opened this issue Feb 10, 2019 · 1 comment

Comments

@tenorius
Copy link

tenorius commented Feb 10, 2019

It seems that even after the last fix on this function, the headers are not showing on IE. Looking into debug, it seems that the actual headers are located in
response.headers.map and the code below just ignores it:

headers: Array.from(res.headers).reduce((res, pair) => {
    res[pair[0]] = pair[1]
    return res
  }, {})
@tenorius
Copy link
Author

The solution i found is to check if the property map exists and if so, i get the headers from there using Object.keys. If theres no map property, i use the array.from like above.
It works like a charm now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant