Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit d8d392c

Browse files
committed
Change XMLHttpRequest.responseType implementation #144
1 parent cd79580 commit d8d392c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/polyfill/XMLHttpRequest.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
262262
if(e.state === "2") {
263263
this._responseHeaders = e.headers
264264
this._statusText = e.status
265-
this._responseType = e.respType || ''
266265
this._status = Math.floor(e.status)
267266
this._dispatchReadStateChange(XMLHttpRequest.HEADERS_RECEIVED)
268267
}
@@ -323,7 +322,7 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
323322
if(resp) {
324323
let info = resp.respInfo || {}
325324
log.debug(this._url, info, info.respType)
326-
switch(info.respType) {
325+
switch(this._responseType) {
327326
case 'blob' :
328327
resp.blob().then((b) => {
329328
this._responseText = resp.text()

0 commit comments

Comments
 (0)