Skip to content

Commit

Permalink
fix[Mock]: fixed mock bug
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Apr 1, 2019
1 parent b94e69b commit 26d1bf0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 26d1bf0

Please sign in to comment.