Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

Commit d063dc8

Browse files
committed
fix(download): remove Authorization header from download requests
1 parent b2551fb commit d063dc8

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/controllers/GameController.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,12 @@ export class Games {
407407
if (req.headers.range) {
408408
headers.Range = req.headers.range;
409409
}
410+
411+
// Ensure the token is not included in the headers
412+
if (headers.Authorization) {
413+
delete headers.Authorization;
414+
}
415+
410416
const fileRes = await fetch(downloadUrl, { headers });
411417
if (!fileRes.ok) {
412418
this.logUnexpectedStatus(req, fileRes.status, 'Failed to fetch game file');

0 commit comments

Comments
 (0)