From 0cca0dd2e15c5d596f855bef40f22a9a06d5453a Mon Sep 17 00:00:00 2001 From: Rose Hogenson Date: Thu, 17 Oct 2024 20:44:44 -0700 Subject: Use ReadTimeout. --- roseh.moe.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roseh.moe.go b/roseh.moe.go index 4b61194..0556269 100644 --- a/roseh.moe.go +++ b/roseh.moe.go @@ -79,10 +79,10 @@ func main() { }) httpServer := http.Server{ - Addr: fmt.Sprintf(":%d", *port), - Handler: mux, - ReadHeaderTimeout: 5 * time.Second, - WriteTimeout: 5 * time.Second, + Addr: fmt.Sprintf(":%d", *port), + Handler: mux, + ReadTimeout: 5 * time.Second, + WriteTimeout: 5 * time.Second, } log.Printf("Listening on %q", httpServer.Addr) -- cgit v1.3.1