fix: update fetch options to include target URL in buildRelayRequest

This commit is contained in:
MythEclipse committed 2026-05-07 20:43:09 +07:00
1 parent cc38b7c7c6
commit db175e6e95
2 files changed
+2 -8

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ export default async function handler(req: Request): Promise<Response> {
}
const headers = stripRelayHeaders(new Headers(req.headers));
const fetchOptions = buildRelayRequest(req, headers);
const fetchOptions = buildRelayRequest(req, targetUrl, headers);
const response = await fetch(targetUrl, fetchOptions);
return createRelayResponse(response);