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