Browse Source

proxy: Enable HTTP/2 on transport to backend

master
Matthew Holt 5 years ago
parent
commit
813fff0584
No known key found for this signature in database GPG Key ID: 2A349DD577D586A5
  1. 4
      modules/caddyhttp/reverseproxy/httptransport.go

4
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

Loading…
Cancel
Save