diff --git a/api/http.go b/api/http.go index b7d67824d9..66579ba1bd 100644 --- a/api/http.go +++ b/api/http.go @@ -33,8 +33,9 @@ func NewHTTPServer(route string, port int, handler http.Handler) *HTTPServer { } svr := &HTTPServer{ svr: &http.Server{ - Addr: ":" + strconv.Itoa(port), - WriteTimeout: 30 * time.Second, + Addr: ":" + strconv.Itoa(port), + WriteTimeout: 30 * time.Second, + ReadHeaderTimeout: 10 * time.Second, }, } mux := http.NewServeMux()