mirror of
https://github.com/caddyserver/caddy.git
synced 2025-01-15 07:16:28 +03:00
proxy: Enable HTTP/2 on transport to backend
This commit is contained in:
parent
d2e7baed8d
commit
813fff0584
1 changed files with 4 additions and 0 deletions
|
@ -120,6 +120,10 @@ func (h *HTTPTransport) Provision(_ caddy.Context) error {
|
||||||
rt.DisableCompression = !*h.Compression
|
rt.DisableCompression = !*h.Compression
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := http2.ConfigureTransport(rt); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
h.RoundTripper = rt
|
h.RoundTripper = rt
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue