diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-23 13:16:34 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-23 13:16:34 -0600 |
commit | 9e576c76e74ff3d5b8d5a384fecf2a2ca191b402 (patch) | |
tree | 450517e2f358b3d1ed13ed017bfdc6016f30e0ca /modules/caddyhttp/caddyhttp.go | |
parent | c24a3e389fc63a2cf3d51e0afd743047514ff1d5 (diff) |
Add request_body middleware and some limits to HTTP servers
Diffstat (limited to 'modules/caddyhttp/caddyhttp.go')
-rw-r--r-- | modules/caddyhttp/caddyhttp.go | 3 |
1 files changed, 3 insertions, 0 deletions
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, } |