Unverified Commit 33e0ba43 authored by Damien Arrachequesne's avatar Damien Arrachequesne
Browse files

[chore] Release 3.2.1

parent 4349b648
No related merge requests found
Showing with 3 additions and 9 deletions
+3 -9
......@@ -1164,10 +1164,6 @@ return /******/ (function(modules) { // webpackBootstrap
xhr.setRequestHeader('Accept', '*/*');
} catch (e) {}
if (this.supportsBinary) {
xhr.responseType = 'arraybuffer';
}
// ie6 check
if ('withCredentials' in xhr) {
xhr.withCredentials = true;
......@@ -1189,8 +1185,8 @@ return /******/ (function(modules) { // webpackBootstrap
if (xhr.readyState === 2) {
try {
var contentType = xhr.getResponseHeader('Content-Type');
if (contentType !== 'application/octet-stream') {
xhr.responseType = 'text';
if (self.supportsBinary && contentType === 'application/octet-stream') {
xhr.responseType = 'arraybuffer';
}
} catch (e) {}
}
......@@ -1303,8 +1299,6 @@ return /******/ (function(modules) { // webpackBootstrap
} catch (e) {}
if (contentType === 'application/octet-stream') {
data = this.xhr.response || this.xhr.responseText;
} else if (this.xhr.responseType === 'arraybuffer') {
data = String.fromCharCode.apply(null, new Uint8Array(this.xhr.response));
} else {
data = this.xhr.responseText;
}
......
......@@ -2,7 +2,7 @@
"name": "engine.io-client",
"description": "Client for the realtime Engine",
"license": "MIT",
"version": "3.2.0",
"version": "3.2.1",
"main": "lib/index.js",
"homepage": "https://github.com/socketio/engine.io-client",
"contributors": [
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment