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

Commit b169932

Browse files
authored
recproxy: use response.url instead of request.url as response.url should be resolved to valid url, while request.url may be (#8)
scheme-relative bump to 0.3.3
1 parent e43e384 commit b169932

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@webrecorder/awp-sw",
33
"browser": "dist/sw.js",
4-
"version": "0.3.2",
4+
"version": "0.3.3",
55
"main": "index.js",
66
"type": "module",
77
"repository": {

src/recproxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export class RecProxy extends ArchiveDB
6464

6565
// don't record content proxied from specified hosts
6666
if (!this.recordProxied && this.liveProxy.hostProxy) {
67-
const parsedUrl = new URL(request.url);
67+
const parsedUrl = new URL(response.url);
6868
if (this.liveProxy.hostProxy[parsedUrl.host]) {
6969
await this.decCounter();
7070
return response;

0 commit comments

Comments
 (0)