Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

Commit

Permalink
Fixed a bug which causes XMLHttpRequest getting incorrect header when…
Browse files Browse the repository at this point in the history
… sending multiple requests in the same time
  • Loading branch information
wkh237 committed Jul 3, 2017
1 parent 40efd14 commit 08f8403
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polyfill/XMLHttpRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export default class XMLHttpRequest extends XMLHttpRequestEventTarget{
_headerReceived = (e) => {
log.debug('header received ', this._task.taskId, e)
this.responseURL = this._url
if(e.state === "2") {
if(e.state === "2" && e.taskId === this._task.taskId) {
this._responseHeaders = e.headers
this._statusText = e.status
this._status = Math.floor(e.status)
Expand Down

0 comments on commit 08f8403

Please sign in to comment.