This repository was archived by the owner on Mar 16, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import XMLHttpRequestEventTarget from './XMLHttpRequestEventTarget.js'
7
7
import Log from '../utils/log.js'
8
8
import Blob from './Blob.js'
9
9
import ProgressEvent from './ProgressEvent.js'
10
+ import URIUtil from '../utils/uri'
10
11
11
12
const log = new Log ( 'XMLHttpRequest' )
12
13
@@ -124,10 +125,9 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
124
125
this . _method = method
125
126
this . _url = url
126
127
this . _headers = { }
127
- this . _increment = / ^ J S O N S t r e a m \: \/ \/ / . test ( this . _url )
128
+ this . _increment = URIUtil . isJSONStreamURI ( this . _url )
128
129
this . _url = this . _url . replace ( / ^ J S O N S t r e a m \: \/ \/ / , '' )
129
130
this . _dispatchReadStateChange ( XMLHttpRequest . OPENED )
130
-
131
131
}
132
132
133
133
/**
@@ -186,6 +186,7 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
186
186
. progress ( this . _progressEvent . bind ( this ) )
187
187
. catch ( this . _onError . bind ( this ) )
188
188
. then ( this . _onDone . bind ( this ) )
189
+
189
190
} )
190
191
}
191
192
@@ -424,7 +425,7 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
424
425
return this . _responseType
425
426
}
426
427
427
- get isRNFBPolyfill ( ) {
428
+ static get isRNFBPolyfill ( ) {
428
429
return true
429
430
}
430
431
You can’t perform that action at this time.
0 commit comments