From ee9eac7e220ab2dbb27c05b3277bf5e81f4deb91 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Fri, 7 Nov 2025 16:44:07 +0800 Subject: [PATCH] Enable custom headers in query requests Uncommented the spread of config.customHeader in the request headers, allowing custom headers to be included in outgoing POST requests. --- src/lib/query.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/query.ts b/src/lib/query.ts index 1cf673d..ddaf18e 100644 --- a/src/lib/query.ts +++ b/src/lib/query.ts @@ -337,7 +337,7 @@ async function query( "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0", // ...fingerprint, - // ...config?.customHeader, + ...config?.customHeader, }, method: "POST", body: requestBody,