🚀 dashboard v0.13.30

This commit is contained in:
naiba
2022-06-22 12:53:21 +08:00
parent c56de09fd2
commit f15bd9c6dd
4 changed files with 6 additions and 5 deletions

View File

@@ -44,8 +44,9 @@ func ServeWeb(port uint) *http.Server {
r.NoMethod(page404)
srv := &http.Server{
Addr: fmt.Sprintf(":%d", port),
Handler: r,
Addr: fmt.Sprintf(":%d", port),
ReadHeaderTimeout: time.Second * 5,
Handler: r,
}
return srv
}