From 9e576c76e74ff3d5b8d5a384fecf2a2ca191b402 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 23 May 2019 13:16:34 -0600 Subject: Add request_body middleware and some limits to HTTP servers --- modules/caddyhttp/caddyhttp.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/caddyhttp/caddyhttp.go') diff --git a/modules/caddyhttp/caddyhttp.go b/modules/caddyhttp/caddyhttp.go index 0fde218..305a918 100644 --- a/modules/caddyhttp/caddyhttp.go +++ b/modules/caddyhttp/caddyhttp.go @@ -110,6 +110,9 @@ func (app *App) Start() error { s := &http.Server{ ReadTimeout: time.Duration(srv.ReadTimeout), ReadHeaderTimeout: time.Duration(srv.ReadHeaderTimeout), + WriteTimeout: time.Duration(srv.WriteTimeout), + IdleTimeout: time.Duration(srv.IdleTimeout), + MaxHeaderBytes: srv.MaxHeaderBytes, Handler: srv, } -- cgit v1.2.3