summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/reverseproxy
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2019-10-29 00:07:45 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2019-10-29 00:07:45 -0600
commit813fff05844f4aee35bdca37eab76eddeb57d2dd (patch)
treed8d4bfd5f43708abe6a1b9758448885c8d0e72fd /modules/caddyhttp/reverseproxy
parentd2e7baed8d3cdcad63128a5dabbc9d8cb71e9ba7 (diff)
proxy: Enable HTTP/2 on transport to backend
Diffstat (limited to 'modules/caddyhttp/reverseproxy')
-rw-r--r--modules/caddyhttp/reverseproxy/httptransport.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/caddyhttp/reverseproxy/httptransport.go b/modules/caddyhttp/reverseproxy/httptransport.go
index fb3ef06..9dd7a29 100644
--- a/modules/caddyhttp/reverseproxy/httptransport.go
+++ b/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