add ReadHeaderTimeout
@@ -35,6 +35,7 @@ func NewHTTPServer(route string, port int, handler http.Handler) *HTTPServer {
svr: &http.Server{
Addr: ":" + strconv.Itoa(port),
WriteTimeout: 30 * time.Second,
+ ReadHeaderTimeout: 10 * time.Second,
},
}
mux := http.NewServeMux()
