Browse Source
proxy: Enable HTTP/2 on transport to backend
master
Matthew Holt
5 years ago
No known key found for this signature in database
GPG Key ID: 2A349DD577D586A5
1 changed files with
4 additions and
0 deletions
-
modules/caddyhttp/reverseproxy/httptransport.go
|
@ -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 |
|
|