Skip to content

Commit

Permalink
default ReadHeaderTimeout to ReadTimeout
Browse files Browse the repository at this point in the history
- add gosec
  • Loading branch information
qbit committed May 5, 2024
1 parent e54bb53 commit c144ba2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
go
gopls
goreleaser
gosec
go-tools
nilaway
];
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ func main() {
}))

s := http.Server{
Handler: mux,
Handler: mux,
ReadHeaderTimeout: 0,
}

lis, err := net.Listen("tcp", listen)
Expand Down

0 comments on commit c144ba2

Please sign in to comment.