You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix HTTP redirect handling in urllib instrumentation REPLAY mode
When urllib follows redirects, response.geturl() should return the final
URL after all redirects. The instrumentation now:
- Captures finalUrl in RECORD mode when it differs from request URL
- Uses finalUrl in REPLAY mode so MockHTTPResponse.geturl() returns
the correct final URL instead of the original request URL
This ensures application code that checks the final URL after redirects
behaves the same in RECORD and REPLAY modes.
0 commit comments