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

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