mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-27 14:13:48 +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
|
||||
}
|
||||
|
||||
if err := http2.ConfigureTransport(rt); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
h.RoundTripper = rt
|
||||
|
||||
return nil
|
||||
|
|
Loading…
Reference in a new issue