Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 14, 05:15 UTC
proxy: Enable HTTP/2 on transport to backend
Matthew Holt committed
Oct 29, 2019 at 00:07 UTC
813fff05844f4aee35bdca37eab76eddeb57d2dd
1 file changed
+4
modules/caddyhttp/reverseproxy/httptransport.go
+4
@@ -120,6 +120,10 @@ func (h *HTTPTransport) Provision(_ caddy.Context) error {
120
rt.DisableCompression = !*h.Compression
121
}
122
123
+ if err := http2.ConfigureTransport(rt); err != nil {
124
+ return err
125
+ }
126
+
127
h.RoundTripper = rt
128
129
return nil