failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · psf/requests
Preserve leading slashes in request path_url ## Summary Fixes issue #6711 where S3 presigned URLs with keys starting with '/' were incorrectly modified, breaking URL signatures. URLs like `https://bucket.s3.amazonaws.com//key_name` now correctly preserve `//key_name` in the path. ## Changes - Remove URL manipulation that collapsed leading slashes in `request_url()` method - Add test to verify leading slashes are preserved for S3-style URLs ## Reproduction ```python import requests # S3 presigned URL with key starting with '/' url = "https://bucket.s3.amazonaws.com//key_with_leading_slash.txt" r = requests.get(url) # Previously broken, now works correctly Fixes #6711
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||