Skip to content

Commit

Permalink
fix(sigmap-EDAP-04): Add IO parsing size constraint on incoming reque…
Browse files Browse the repository at this point in the history
…st bodies - address PR feedback
  • Loading branch information
EthenNotEthan committed Jan 9, 2025
1 parent 692f8e8 commit 48c8cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (

const (
// limit requests to only 32 mib to mitigate potential DoS attacks
maxRequestBodySize int64 = 1048576 * 32
maxRequestBodySize int64 = 1024 * 1024 * 32
)

func (svr *Server) handleHealth(w http.ResponseWriter, _ *http.Request) error {
Expand Down

0 comments on commit 48c8cdc

Please sign in to comment.