|
|
|
|
262
|
if(e.state === "2") {
|
262
|
if(e.state === "2") {
|
263
|
this._responseHeaders = e.headers
|
263
|
this._responseHeaders = e.headers
|
264
|
this._statusText = e.status
|
264
|
this._statusText = e.status
|
265
|
- this._responseType = e.respType || ''
|
|
|
266
|
this._status = Math.floor(e.status)
|
265
|
this._status = Math.floor(e.status)
|
267
|
this._dispatchReadStateChange(XMLHttpRequest.HEADERS_RECEIVED)
|
266
|
this._dispatchReadStateChange(XMLHttpRequest.HEADERS_RECEIVED)
|
268
|
}
|
267
|
}
|
|
|
|
|
323
|
if(resp) {
|
322
|
if(resp) {
|
324
|
let info = resp.respInfo || {}
|
323
|
let info = resp.respInfo || {}
|
325
|
log.debug(this._url, info, info.respType)
|
324
|
log.debug(this._url, info, info.respType)
|
326
|
- switch(info.respType) {
|
|
|
|
|
325
|
+ switch(this._responseType) {
|
327
|
case 'blob' :
|
326
|
case 'blob' :
|
328
|
resp.blob().then((b) => {
|
327
|
resp.blob().then((b) => {
|
329
|
this._responseText = resp.text()
|
328
|
this._responseText = resp.text()
|