bug: passthrough request headers

This commit is contained in:
Kieran 2023-04-14 10:46:08 +01:00
parent 0e75f47d1d
commit 7b9bbc4ad5
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 2 additions and 0 deletions

View File

@ -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"
}
});

View File

@ -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"
}
});