proxy: Enable HTTP/2 on transport to backend

This commit is contained in:
Matthew Holt 2019-10-29 00:07:45 -06:00
parent d2e7baed8d
commit 813fff0584
No known key found for this signature in database
GPG key ID: 2A349DD577D586A5

View file

@ -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