fix: fix upstash sync issue

This commit is contained in:
Fred
2024-03-14 01:56:36 +08:00
parent 133ce39a13
commit 6aaf83f3c2
4 changed files with 27 additions and 18 deletions

View File

@@ -80,7 +80,7 @@ async function handle(
const targetUrl = `${protocol}://${endpoint + endpointPath}`;
const method = req.headers.get("method") ?? undefined;
const method = req.method;
const shouldNotHaveBody = ["get", "head"].includes(
method?.toLowerCase() ?? "",
);