bug: passthrough request headers
This commit is contained in:
parent
0e75f47d1d
commit
7b9bbc4ad5
@ -10,6 +10,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
|
||||
method: "POST",
|
||||
body: await next.arrayBuffer(),
|
||||
headers: {
|
||||
...context.request.headers,
|
||||
"content-type": "text/plain"
|
||||
}
|
||||
});
|
||||
|
@ -10,6 +10,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
|
||||
method: "POST",
|
||||
body: await next.arrayBuffer(),
|
||||
headers: {
|
||||
...context.request.headers,
|
||||
"content-type": "text/plain"
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user