mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 03:07:20 +08:00
fix: 解决MaxHeaderBytes问题
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user