Skip to content

Commit 368d180

Browse files
committed
fix: twitch (ONE LINE)
1 parent 6dd19af commit 368d180

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dev:debug": "DEBUG=1 node server.js",
1717
"prepack": "RELEASE=1 npm run rewriter:build && npm run build",
1818
"pub": "npm publish --no-git-checks --access public",
19-
"format": "prettier --config .prettierrc.js --write .",
19+
"format": "prettier --write .",
2020
"lint": "eslint ./src/",
2121
"lint:fix": "eslint ./src/ --fix",
2222
"test": "npx playwright test"

src/worker/fetch.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ export async function handleFetch(
141141
// console.log(headers);
142142
} else {
143143
headers.set("Referer", clientURL.toString());
144-
headers.set(
145-
"Origin",
146-
clientURL.origin ? `${clientURL.protocol}//${clientURL.host}` : "null"
147-
);
144+
headers.set("Origin", clientURL.origin);
148145
}
149146
}
150147

0 commit comments

Comments
 (0)