default ReadHeaderTimeout to ReadTimeout

- add gosec
This commit is contained in:
Aaron Bieber 2024-05-05 13:48:19 -06:00
parent e54bb537f6
commit c144ba2417
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,7 @@
go go
gopls gopls
goreleaser goreleaser
gosec
go-tools go-tools
nilaway nilaway
]; ];

View File

@ -400,6 +400,7 @@ func main() {
s := http.Server{ s := http.Server{
Handler: mux, Handler: mux,
ReadHeaderTimeout: 0,
} }
lis, err := net.Listen("tcp", listen) lis, err := net.Listen("tcp", listen)