bug: use custom ua

This commit is contained in:
Kieran 2023-04-14 10:50:06 +01:00
parent 7b9bbc4ad5
commit 723589fec7
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
method: "POST",
body: await next.arrayBuffer(),
headers: {
...context.request.headers,
"user-agent": "Snort-Functions/1.0 (https://snort.social)",
"content-type": "text/plain"
}
});

View File

@ -10,7 +10,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {
method: "POST",
body: await next.arrayBuffer(),
headers: {
...context.request.headers,
"user-agent": "Snort-Functions/1.0 (https://snort.social)",
"content-type": "text/plain"
}
});