fix[Mock]: fixed mock bug
This commit is contained in:
parent
b94e69be6f
commit
26d1bf09fd
|
@ -11,7 +11,10 @@ export function mockXHR() {
|
|||
Mock.XHR.prototype.send = function() {
|
||||
if (this.custom.xhr) {
|
||||
this.custom.xhr.withCredentials = this.withCredentials || false
|
||||
this.custom.xhr.responseType = this.responseType
|
||||
|
||||
if (this.responseType) {
|
||||
this.custom.xhr.responseType = this.responseType
|
||||
}
|
||||
}
|
||||
this.proxy_send(...arguments)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue