@@ -26,7 +26,6 @@ const hasXHR2 = (function () {
26
26
27
27
export class Polling extends Transport {
28
28
private readonly xd : boolean ;
29
- private readonly xs : boolean ;
30
29
31
30
private polling : boolean = false ;
32
31
private pollXhr : any ;
@@ -54,7 +53,6 @@ export class Polling extends Transport {
54
53
( typeof location !== "undefined" &&
55
54
opts . hostname !== location . hostname ) ||
56
55
port !== opts . port ;
57
- this . xs = opts . secure !== isSSL ;
58
56
}
59
57
/**
60
58
* XHR supports binary
@@ -260,11 +258,7 @@ export class Polling extends Transport {
260
258
* @private
261
259
*/
262
260
request ( opts = { } ) {
263
- Object . assign (
264
- opts ,
265
- { xd : this . xd , xs : this . xs , cookieJar : this . cookieJar } ,
266
- this . opts
267
- ) ;
261
+ Object . assign ( opts , { xd : this . xd , cookieJar : this . cookieJar } , this . opts ) ;
268
262
return new Request ( this . uri ( ) , opts ) ;
269
263
}
270
264
@@ -309,7 +303,7 @@ interface RequestReservedEvents {
309
303
}
310
304
311
305
export class Request extends Emitter < { } , { } , RequestReservedEvents > {
312
- private readonly opts : { xd ; xs ; cookieJar : CookieJar } & SocketOptions ;
306
+ private readonly opts : { xd ; cookieJar : CookieJar } & SocketOptions ;
313
307
private readonly method : string ;
314
308
private readonly uri : string ;
315
309
private readonly async : boolean ;
@@ -360,7 +354,6 @@ export class Request extends Emitter<{}, {}, RequestReservedEvents> {
360
354
"autoUnref"
361
355
) ;
362
356
opts . xdomain = ! ! this . opts . xd ;
363
- opts . xscheme = ! ! this . opts . xs ;
364
357
365
358
const xhr = ( this . xhr = new XMLHttpRequest ( opts ) ) ;
366
359
0 commit comments