Skip to content

Commit

Permalink
Revert "fix(workers-playground): sends raw request method through the…
Browse files Browse the repository at this point in the history
… `X-CF-HTTP-Method` header" (#7791)

* Revert "fix(workers-playground): sends raw request method through the X-CF-HT…"

This reverts commit 99f27df.

* fix(workers-playground): Revert PR 7639

Seems like our prev release of the workers-playground
broke things. We are seeing a spike of related errors.
We are therefore reverting the changes

---------

Co-authored-by: Edmund Hung <[email protected]>
  • Loading branch information
CarmenPopoviciu and edmundhung authored Jan 16, 2025
1 parent cc4af98 commit f8c11d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .changeset/heavy-gorillas-punch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"workers-playground": patch
---

Reverts #7639

Seems like our prev release of the workers-playground broke things. We are seeing a spike of related errors. We are therefore reverting the changes
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ export function fetchWorker(

return fetch(`${proxyUrl.origin}${init}`, {
...input,
method: "POST",
headers: [
...(input?.headers ?? [])
.filter(([name]) => name)
.map<[string, string]>(([n, v]) => [`cf-ew-raw-${n}`, v]),
["X-CF-Token", token],
["cf-raw-http", "true"],
["X-CF-HTTP-Method", input.method ?? "GET"],
],
});
}

0 comments on commit f8c11d7

Please sign in to comment.