security: hardening по результатам аудита безопасности

This commit is contained in:
2026-08-08 22:48:16 +03:00
parent 8c8631ac9c
commit bf2bceb520
18 changed files with 400 additions and 20 deletions
+2 -1
View File
@@ -26,7 +26,8 @@ func New(port int) (*Server, error) {
s := &Server{listener: listener}
s.server = &http.Server{
Handler: http.HandlerFunc(s.handleHealthz),
Handler: http.HandlerFunc(s.handleHealthz),
ReadHeaderTimeout: 5 * time.Second,
}
return s, nil
}