From 813fff05844f4aee35bdca37eab76eddeb57d2dd Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Tue, 29 Oct 2019 00:07:45 -0600 Subject: proxy: Enable HTTP/2 on transport to backend --- modules/caddyhttp/reverseproxy/httptransport.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/caddyhttp') 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 -- cgit v1.2.3