diff options
| author | Rose Hogenson <rosehogenson@posteo.net> | 2024-10-17 20:44:44 -0700 |
|---|---|---|
| committer | Rose Hogenson <rosehogenson@posteo.net> | 2024-10-17 20:44:44 -0700 |
| commit | 0cca0dd2e15c5d596f855bef40f22a9a06d5453a (patch) | |
| tree | fb88f4634c0940d59d59adc5f8fe4cf8a85f73d3 | |
| parent | ce5d9a10eb21b696b2f716b0a66ec6e42bd33e0c (diff) | |
| download | roseh.moe-0cca0dd2e15c5d596f855bef40f22a9a06d5453a.tar.zst | |
Use ReadTimeout.
| -rw-r--r-- | roseh.moe.go | 8 |
1 files 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) |
