diff --git a/lib/transports/polling-xhr.js b/lib/transports/polling-xhr.js index 9a691bcb3..68f33373c 100755 --- a/lib/transports/polling-xhr.js +++ b/lib/transports/polling-xhr.js @@ -341,7 +341,7 @@ Request.prototype.onLoad = function () { contentType = this.xhr.getResponseHeader('Content-Type').split(';')[0]; } catch (e) {} if (contentType === 'application/octet-stream') { - data = this.xhr.response; + data = this.xhr.response || this.xhr.responseText; } else { if (!this.supportsBinary) { data = this.xhr.responseText;