Open enricostara opened 10 years ago
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
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