Fix creating server (#1894)

This commit is contained in:
Kendall Garner 2022-09-27 20:53:40 +00:00 committed by Joe Stump
parent a1506402aa
commit 822c364645
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -48,6 +48,7 @@ func (s *Server) Run(addr string) error {
server := &http.Server{
Addr: addr,
ReadHeaderTimeout: consts.ServerReadHeaderTimeout,
Handler: s.router,
}
return server.ListenAndServe()