Skip to content

Commit

Permalink
Set http.Server.MaxHeaderBytes to the default value
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed Apr 15, 2022
1 parent 5d3eee1 commit 0c3c495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/server/server.go
Expand Up @@ -96,7 +96,7 @@ func (s Server) Serve(
ReadHeaderTimeout: ssCfg.InitialTimeout,
WriteTimeout: ssCfg.WriteTimeout,
IdleTimeout: ssCfg.ReadTimeout,
MaxHeaderBytes: 4096,
MaxHeaderBytes: http.DefaultMaxHeaderBytes,
ErrorLog: goLog.New(dumpWrite{}, "", 0),
},
shutdownWait: s.shutdownWait,
Expand Down

0 comments on commit 0c3c495

Please sign in to comment.