From b1386984554716bf4223a8dba2b029117f97b1e5 Mon Sep 17 00:00:00 2001 From: pseudoyu Date: Thu, 5 Dec 2024 00:33:48 +0800 Subject: [PATCH] chore(api): increase maxHeaderSize --- lib/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/index.ts b/lib/index.ts index 97cf8882bbf482..bd6ba51d69091b 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -20,6 +20,9 @@ const server = serve({ fetch: app.fetch, hostname: config.listenInaddrAny ? '::' : '127.0.0.1', port, + serverOptions: { + maxHeaderSize: 1024 * 64, + }, }); export default server;