Fixed stripPrefix middleware is not applied to retried attempts
This commit is contained in:
parent
789046f162
commit
f4ddf25e41
3 changed files with 65 additions and 1 deletions
|
@ -97,7 +97,7 @@ func (r *retry) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
|||
}
|
||||
newCtx := httptrace.WithClientTrace(req.Context(), trace)
|
||||
|
||||
r.next.ServeHTTP(retryResponseWriter, req.WithContext(newCtx))
|
||||
r.next.ServeHTTP(retryResponseWriter, req.Clone(newCtx))
|
||||
|
||||
if !retryResponseWriter.ShouldRetry() {
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue