Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
schettn committed Jun 25, 2024
1 parent 531c161 commit 3d235e9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function basicProxy(proxy_url = ""): Handler {
"trailers",
"transfer-encoding",
"upgrade",
"user-agent",
].includes(key)
) {
return;
Expand Down Expand Up @@ -133,6 +134,18 @@ function basicProxy(proxy_url = ""): Handler {
}
}

console.log("TRYING HEADERS DONE");

// Test the normal call again to see how fucked this is

const response = await fetch(url, {
method: c.req.raw.method,
headers: headers,
body: blob.size > 0 ? blob : undefined,
});

console.log("FINAL", response.status);

return new Response("Error", {
status: 500,
});
Expand Down

0 comments on commit 3d235e9

Please sign in to comment.