diff --git a/cmd/willow.go b/cmd/willow.go index 3fd7d7da036ddff37dbaeabea0042ba9939caf12..632218ccc21de1cf9673ac6c91fb87469e20d6d9 100644 --- a/cmd/willow.go +++ b/cmd/willow.go @@ -12,6 +12,7 @@ import ( "os" "strconv" "sync" + "time" "git.sr.ht/~amolith/willow/db" "git.sr.ht/~amolith/willow/project" @@ -120,8 +121,9 @@ func main() { mux.HandleFunc("/", wsHandler.RootHandler) httpServer := &http.Server{ - Addr: config.Server.Listen, - Handler: mux, + Addr: config.Server.Listen, + Handler: mux, + ReadHeaderTimeout: 10 * time.Second, } fmt.Println("Starting web server on", config.Server.Listen)