Skip to content

Commit 6262d9e

Browse files
committed
Revert "Revert "fix(workers-playground): sends raw request method through the…"
This reverts commit f8c11d7.
1 parent 17ce7f5 commit 6262d9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/workers-playground/src/QuickEditor/HTTPTab/fetchWorker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ export function fetchWorker(
1010

1111
return fetch(`${proxyUrl.origin}${init}`, {
1212
...input,
13+
method: "POST",
1314
headers: [
1415
...(input?.headers ?? [])
1516
.filter(([name]) => name)
1617
.map<[string, string]>(([n, v]) => [`cf-ew-raw-${n}`, v]),
1718
["X-CF-Token", token],
1819
["cf-raw-http", "true"],
20+
["X-CF-HTTP-Method", input.method ?? "GET"],
1921
],
2022
});
2123
}

0 commit comments

Comments
 (0)