From a3827565c1381119303966b22ce9ae67d239b288 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Fri, 23 Jan 2026 21:45:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3MaxHeaderBytes?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/bootstrap/http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/bootstrap/http.go b/internal/bootstrap/http.go index eccc99b1..08a8af59 100644 --- a/internal/bootstrap/http.go +++ b/internal/bootstrap/http.go @@ -31,7 +31,7 @@ func NewHttp(conf *config.Config, mux *chi.Mux) (*hlfhr.Server, error) { srv := hlfhr.New(&http.Server{ Addr: fmt.Sprintf(":%d", conf.HTTP.Port), Handler: mux, - MaxHeaderBytes: 2048 << 20, + MaxHeaderBytes: 4 << 20, }) srv.Listen80RedirectTo443 = true