File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -1164,10 +1164,6 @@ return /******/ (function(modules) { // webpackBootstrap
1164
1164
xhr . setRequestHeader ( 'Accept' , '*/*' ) ;
1165
1165
} catch ( e ) { }
1166
1166
1167
- if ( this . supportsBinary ) {
1168
- xhr . responseType = 'arraybuffer' ;
1169
- }
1170
-
1171
1167
// ie6 check
1172
1168
if ( 'withCredentials' in xhr ) {
1173
1169
xhr . withCredentials = true ;
@@ -1189,8 +1185,8 @@ return /******/ (function(modules) { // webpackBootstrap
1189
1185
if ( xhr . readyState === 2 ) {
1190
1186
try {
1191
1187
var contentType = xhr . getResponseHeader ( 'Content-Type' ) ;
1192
- if ( contentType ! == 'application/octet-stream' ) {
1193
- xhr . responseType = 'text ' ;
1188
+ if ( self . supportsBinary && contentType = == 'application/octet-stream' ) {
1189
+ xhr . responseType = 'arraybuffer ' ;
1194
1190
}
1195
1191
} catch ( e ) { }
1196
1192
}
@@ -1302,11 +1298,7 @@ return /******/ (function(modules) { // webpackBootstrap
1302
1298
contentType = this . xhr . getResponseHeader ( 'Content-Type' ) ;
1303
1299
} catch ( e ) { }
1304
1300
if ( contentType === 'application/octet-stream' ) {
1305
- if ( this . xhr . responseType === 'arraybuffer' ) {
1306
- data = this . xhr . response || this . xhr . responseText ;
1307
- } else {
1308
- data = String . fromCharCode . apply ( null , new Uint8Array ( this . xhr . response ) ) ;
1309
- }
1301
+ data = this . xhr . response || this . xhr . responseText ;
1310
1302
} else {
1311
1303
data = this . xhr . responseText ;
1312
1304
}
Original file line number Diff line number Diff line change 2
2
"name" : " engine.io-client" ,
3
3
"description" : " Client for the realtime Engine" ,
4
4
"license" : " MIT" ,
5
- "version" : " 3.1.5 " ,
5
+ "version" : " 3.1.6 " ,
6
6
"main" : " lib/index.js" ,
7
7
"homepage" : " https://github.com/socketio/engine.io-client" ,
8
8
"contributors" : [
You can’t perform that action at this time.
0 commit comments