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",
|
method: "POST",
|
||||||
body: await next.arrayBuffer(),
|
body: await next.arrayBuffer(),
|
||||||
headers: {
|
headers: {
|
||||||
|
...context.request.headers,
|
||||||
"content-type": "text/plain"
|
"content-type": "text/plain"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -10,6 +10,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
|
|||||||
method: "POST",
|
method: "POST",
|
||||||
body: await next.arrayBuffer(),
|
body: await next.arrayBuffer(),
|
||||||
headers: {
|
headers: {
|
||||||
|
...context.request.headers,
|
||||||
"content-type": "text/plain"
|
"content-type": "text/plain"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user