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:
@@ -167,6 +167,7 @@ func StartSeparateServer() {
|
||||
server := &http.Server{
|
||||
Addr: config.PrometheusListen,
|
||||
Handler: mux,
|
||||
ReadHeaderTimeout: 5 * time.Second,
|
||||
}
|
||||
|
||||
// Start HTTP server
|
||||
|
Reference in New Issue
Block a user