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

Commit f53dcff

Browse files
committed
Added requestUrl property to the response object for redirected responses.
1 parent 18c90f4 commit f53dcff

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

app.fetch.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,7 @@ class SocketFetch extends ArcEventSource {
11911191

11921192
this._createResponse(false)
11931193
.then(() => {
1194+
this._response.requestUrl = this._request.url;
11941195
this.redirects.add(this._response);
11951196
return this._cleanUpRedirect();
11961197
})

app.response.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ class ArcResponse {
5151
this.redirects = init.redirects;
5252
this.stats = init.stats;
5353
this._headers = init.headers;
54+
// Filed when the request was redirected.
55+
this.requestUrl = undefined;
5456
}
5557
get type() {
5658
return this._response.type;

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket-fetch",
3-
"version": "1.0.40",
3+
"version": "1.0.41",
44
"license": "LICENSE.txt",
55
"description": "A HTTP transport based on chrome.socket.tcp API.",
66
"authors": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket-fetch",
3-
"version": "1.0.40",
3+
"version": "1.0.41",
44
"license": "LICENSE",
55
"description": "A HTTP transport based on chrome.socket.tcp API.",
66
"scripts": {

0 commit comments

Comments
 (0)