Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
Update: added property to all reported responses
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodek committed Apr 28, 2016
1 parent a7eb80e commit 38452b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,6 @@ class SocketFetch extends ArcEventSource {
} else {
this._cancelTimer();
this._dispatchCustomEvent('loadend');
this._request.messageSent = this._connection.messageSent;
this._publishResponse({includeRedirects: true});
}
}
Expand All @@ -1209,6 +1208,7 @@ class SocketFetch extends ArcEventSource {
* @param {Object} opts See #_createResponse for more info.
*/
_publishResponse(opts) {
this._request.messageSent = this._connection.messageSent;
this._createResponse(opts)
.then(() => {
this._dispatchCustomEvent('load', {
Expand Down Expand Up @@ -1255,6 +1255,7 @@ class SocketFetch extends ArcEventSource {
this._createResponse({includeRedirects: false})
.then(() => {
this._cancelTimer();
this._request.messageSent = this._connection.messageSent;
this._response.requestUrl = this._request.url;
this.redirects.add(this._response);
return this._cleanUpRedirect();
Expand Down

0 comments on commit 38452b9

Please sign in to comment.