Skip to content

Commit

Permalink
proxy: Enable HTTP/2 on transport to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
mholt committed Oct 29, 2019
1 parent d2e7bae commit 813fff0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/caddyhttp/reverseproxy/httptransport.go
Expand Up @@ -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
Expand Down

0 comments on commit 813fff0

Please sign in to comment.