From 80c665d934df68fa274bc1bee9771bf4ce7bfc7c Mon Sep 17 00:00:00 2001 From: Simon Hu Date: Fri, 30 Aug 2024 17:55:46 +0800 Subject: [PATCH] fix: Return unauthorized response with status code --- src/handleDownload.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handleDownload.ts b/src/handleDownload.ts index 14ca6f6..8dd50fe 100644 --- a/src/handleDownload.ts +++ b/src/handleDownload.ts @@ -15,6 +15,7 @@ export async function handleDownload(request: Request) { message: verifyResult, }), { + status: 401, headers: { "content-type": "application/json;charset=UTF-8", },