2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 03:07:20 +08:00

fix: 解决MaxHeaderBytes问题

This commit is contained in:
2026-01-23 21:45:05 +08:00
parent df1dc40b80
commit a3827565c1

View File

@@ -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