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
gopls
goreleaser
gosec
go-tools
nilaway
];

View File

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