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

Give to FF a chance to set the ‘xhr.responseType’ #74

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

enricostara
Copy link

Give to FireFox a chance to set the xhr.responseType = 'arraybuffer' on async request.
See also: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data

@enricostara
Copy link
Author

You can receive a null response body if try to do a request to an unreachable site.
So we need to check first if the response body is defined.
You can find a test here:
https://github.com/enricostara/telegram-mt-node/blob/master/test/net/http-connection.test.js

@enricostara enricostara reopened this Nov 25, 2014
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

Successfully merging this pull request may close these issues.

1 participant