engine.io-client
Advanced tools
Comparing version 3.1.5 to 3.1.6
@@ -223,6 +223,2 @@ /** | ||
if (this.supportsBinary) { | ||
xhr.responseType = 'arraybuffer'; | ||
} | ||
// ie6 check | ||
@@ -249,4 +245,4 @@ if ('withCredentials' in xhr) { | ||
var contentType = xhr.getResponseHeader('Content-Type'); | ||
if (contentType !== 'application/octet-stream') { | ||
xhr.responseType = 'text'; | ||
if (self.supportsBinary && contentType === 'application/octet-stream') { | ||
xhr.responseType = 'arraybuffer'; | ||
} | ||
@@ -363,7 +359,3 @@ } catch (e) {} | ||
if (contentType === 'application/octet-stream') { | ||
if (this.xhr.responseType === 'arraybuffer') { | ||
data = this.xhr.response || this.xhr.responseText; | ||
} else { | ||
data = String.fromCharCode.apply(null, new Uint8Array(this.xhr.response)); | ||
} | ||
data = this.xhr.response || this.xhr.responseText; | ||
} else { | ||
@@ -370,0 +362,0 @@ data = this.xhr.responseText; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "3.1.5", | ||
"version": "3.1.6", | ||
"main": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "homepage": "https://github.com/socketio/engine.io-client", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
177105
5681