fix timeing
This commit is contained in:
@@ -76,7 +76,7 @@ func NewServer(documentRoot string, srv *data.Service, creds map[string]string,
|
||||
s.Server = &http.Server{
|
||||
Addr: fmt.Sprintf(":%d", port),
|
||||
Handler: router,
|
||||
ReadHeaderTimeout: 2,
|
||||
ReadHeaderTimeout: 2 * time.Second,
|
||||
}
|
||||
return s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user