Skip to content

Commit

Permalink
fix response forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
esterlus committed May 30, 2024
1 parent a81c263 commit b2a139b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ async function fetchLogo(url: string, request: WorkerRequest) {
return fetch(url, request).then(async function (response) {
const headers = new Headers(response.headers);
headers.set('Access-Control-Allow-Origin', '*');
return new Response(response.body, { headers });
return new Response(response.body, {
headers,
status: response.status,
statusText: response.statusText
});
});
}

Expand Down

0 comments on commit b2a139b

Please sign in to comment.