1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-08-13 20:04:49 +02:00

Security: Add ReadHeaderTimeout to Prometheus metrics server

This commit is contained in:
Ralph Slooten
2025-07-25 20:39:13 +12:00
parent 5a4d13b15a
commit 507217844b

View File

@@ -167,6 +167,7 @@ func StartSeparateServer() {
server := &http.Server{
Addr: config.PrometheusListen,
Handler: mux,
ReadHeaderTimeout: 5 * time.Second,
}
// Start HTTP server