diff --git a/transport.go b/transport.go index 90657915f..7453d2142 100644 --- a/transport.go +++ b/transport.go @@ -80,6 +80,7 @@ func cloneRequest(r *http.Request) *http.Request { // shallow copy of the struct r2 := new(http.Request) *r2 = *r + r2 = r2.WithContext(r.Context()) // deep copy of the Header r2.Header = make(http.Header, len(r.Header)) for k, s := range r.Header {