fix[Mock]: add xhr.responseType (#1779)

pull/1782/head
sun ao 6 years ago committed by 花裤衩
parent 331173ffee
commit 9d975b5eff

@ -11,6 +11,7 @@ Mock.XHR.prototype.proxy_send = Mock.XHR.prototype.send
Mock.XHR.prototype.send = function() {
if (this.custom.xhr) {
this.custom.xhr.withCredentials = this.withCredentials || false
this.custom.xhr.responseType = this.responseType
}
this.proxy_send(...arguments)
}

Loading…
Cancel
Save