Skip to content

Commit

Permalink
donot modify Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac committed Mar 22, 2023
1 parent cf2a4e5 commit ab1a9ac
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ const OPENAI_API_HOST = "api.openai.com";
serve(async (request) => {
const url = new URL(request.url);
url.host = OPENAI_API_HOST;

request.headers.delete("x-forwarded-for");
request.headers.delete("x-real-ip");

return await fetch(url, request);
});

0 comments on commit ab1a9ac

Please sign in to comment.