Skip to content

Commit

Permalink
fix: specify request method, headers, and body
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Dec 3, 2024
1 parent d053077 commit da992bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/routes/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export async function handleApiRequest(request: Request, url: URL) {

async function makeRequest(cacheKey: bigint, url: URL, request: Request) {
const response = await fetch(url, {
...request,
method: request.method,
headers: request.headers,
body: request.body,
signal: AbortSignal.timeout(10_000),
});

Expand Down

0 comments on commit da992bf

Please sign in to comment.