-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 missing on firefox #181
Comments
Related to this maybe? https://bugzilla.mozilla.org/show_bug.cgi?id=608735 |
|
get content-type even if can't get other headers. fixes #181
OK, it seems this bug returns when I use it with Calling to So here's my humble solution: var tryAnotherContentType = this.xhr.getResponseHeader('content-type');
if (tryAnotherContentType && tryAnotherContentType.length > 0) {
this.header['content-type'] = tryAnotherContentType;
} |
This causes
resp.body
to benull
for json responses which is pretty catastrophic.I've tried every version down to 0.9.8 and they all have the same issue. 0.9.8 actually throws an error instead of having a response which is incorrect because the status is 200 and the text is valid json.
The text was updated successfully, but these errors were encountered: