diff options
author | Francis Lavoie <[email protected]> | 2020-09-08 12:37:46 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2020-09-08 10:37:46 -0600 |
commit | 4cd7ae35b3ec3d882168cef669974a2c3aab3618 (patch) | |
tree | e483cf8aad7cc3980f32a2d61fd48c24dc614f9b /modules/caddyhttp/reverseproxy/caddyfile.go | |
parent | 24f34780b61fc82df6507cf95535c3dfc9f78058 (diff) | |
download | caddy-4cd7ae35b3ec3d882168cef669974a2c3aab3618.tar.gz caddy-4cd7ae35b3ec3d882168cef669974a2c3aab3618.zip |
reverseproxy: Add `buffer_requests` option to `reverse_proxy` directive (#3710)
Diffstat (limited to 'modules/caddyhttp/reverseproxy/caddyfile.go')
-rw-r--r-- | modules/caddyhttp/reverseproxy/caddyfile.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/caddyfile.go b/modules/caddyhttp/reverseproxy/caddyfile.go index 8c3b1184a..33f6e7b55 100644 --- a/modules/caddyhttp/reverseproxy/caddyfile.go +++ b/modules/caddyhttp/reverseproxy/caddyfile.go @@ -467,6 +467,12 @@ func (h *Handler) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { h.FlushInterval = caddy.Duration(dur) } + case "buffer_requests": + if d.NextArg() { + return d.ArgErr() + } + h.BufferRequests = true + case "header_up": if h.Headers == nil { h.Headers = new(headers.Handler) |