From 7fe99610bf517e9d03dad3a8a9af69bb6a28d25a Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Mon, 13 Mar 2017 23:07:17 +0100 Subject: [PATCH] fix string payload without binary --- lib/transports/polling-xhr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transports/polling-xhr.js b/lib/transports/polling-xhr.js index dbf000f43..b2576636b 100755 --- a/lib/transports/polling-xhr.js +++ b/lib/transports/polling-xhr.js @@ -205,7 +205,7 @@ Request.prototype.create = function () { } } } catch (e) {} - if (this.supportsBinary) { + if (this.supportsBinary && this.isBinary) { // This has to be done after open because Firefox is stupid // http://stackoverflow.com/questions/13216903/get-binary-data-with-xmlhttprequest-in-a-firefox-extension xhr.responseType = 'arraybuffer';