@marcel91200 / caddy Mirror · read-only / commits / 21d7b662
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

fastcgi: Use request context as base, not a new one

Matthew Holt committed Sep 6, 2019 at 12:02 UTC 21d7b662e76feeb506cae9a616d92d85326566bd
1 file changed +1 -1
modules/caddyhttp/reverseproxy/fastcgi/fastcgi.go
+1 -1
@@ -92,7 +92,7 @@ func (t Transport) RoundTrip(r *http.Request) (*http.Response, error) {
92 }
93
94 // TODO: doesn't dialer have a Timeout field?
95 - ctx := context.Background()
95 + ctx := r.Context()
96 if t.DialTimeout > 0 {
97 var cancel context.CancelFunc
98 ctx, cancel = context.WithTimeout(ctx, time.Duration(t.DialTimeout))