Fix creating server (#1894)

This commit is contained in:
Kendall Garner 2022-09-27 20:53:40 +00:00 committed by GitHub
parent ded9ab53e5
commit 751e42c705
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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()