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

[Bugfix] XMLHttpRequest: Fix lowercase headers being returned with uppercase keys #1917

Conversation

negativetwelve
Copy link
Contributor

In the XMLHttpRequestBase class, the value this._lowerCaseResponseHeaders is currently returning uppercased values. This is causing things like the Content-Type to not be parsed correctly with getResponseHeader which causes JSON to be parsed as a single string.

This bug was introduced by this commit: e00b9ac

I'm not positive, but I think this may fix the bug reported at #1780

@facebook-github-bot facebook-github-bot added GH Review: review-needed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Jul 9, 2015
@negativetwelve negativetwelve changed the title XMLHttpRequest: Fix lowercase headers being returned with uppercase keys [Bugfix] XMLHttpRequest: Fix lowercase headers being returned with uppercase keys Jul 9, 2015
@jeanregisser
Copy link
Contributor

Duplicate of #1876

@brentvatne
Copy link
Collaborator

Indeed :) Thanks for it anyways @negativetwelve!

@brentvatne brentvatne closed this Jul 9, 2015
@negativetwelve
Copy link
Contributor Author

Oops, did a search but didn't find that PR, thanks for letting me know!

@negativetwelve negativetwelve deleted the xmlhttprequest-response-headers branch July 21, 2015 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants