diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-10-29 00:07:45 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-10-29 00:07:45 -0600 |
commit | 813fff05844f4aee35bdca37eab76eddeb57d2dd (patch) | |
tree | d8d4bfd5f43708abe6a1b9758448885c8d0e72fd /modules | |
parent | d2e7baed8d3cdcad63128a5dabbc9d8cb71e9ba7 (diff) |
proxy: Enable HTTP/2 on transport to backend
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddyhttp/reverseproxy/httptransport.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/httptransport.go b/modules/caddyhttp/reverseproxy/httptransport.go index fb3ef06..9dd7a29 100644 --- a/modules/caddyhttp/reverseproxy/httptransport.go +++ b/modules/caddyhttp/reverseproxy/httptransport.go @@ -120,6 +120,10 @@ func (h *HTTPTransport) Provision(_ caddy.Context) error { rt.DisableCompression = !*h.Compression } + if err := http2.ConfigureTransport(rt); err != nil { + return err + } + h.RoundTripper = rt return nil |