requests icon indicating copy to clipboard operation
requests copied to clipboard

A simple, yet elegant, HTTP library.

Results 348 requests issues
Sort by recently updated
recently updated
newest added

### Summary This PR refactors the URL fragment handling logic in `SessionRedirectMixin` to be more Pythonic and adds comprehensive test coverage for fragment preservation during HTTP redirects, as specified in...

### Summary This PR enhances error handling in `HTTPAdapter` to properly wrap unhandled urllib3 `HTTPError` exceptions in `RequestException`, ensuring consistent exception handling across the requests library. ### Problem Previously, when...

### Summary This PR improves exception handling in the `morsel_to_cookie` function by preserving the original `ValueError` when a `max-age` conversion fails, following Python's exception chaining best practices. ### Changes Made...

## Summary This PR enhances exception handling in the `HTTPAdapter` class by preserving exception chains using Python's explicit `from` clause. This change improves debugging and error traceability by maintaining the...

## Summary Refactors the `multiple_domains()` method in `RequestsCookieJar` to fix a logic bug and improve performance by using a set for domain tracking instead of a list. ## Changes -...

## Summary Fixes a bug in `MockResponse.getheaders()` method where it was not returning the headers list, resulting in `None` being returned instead. ## Problem The `getheaders()` method in the `MockResponse`...

(`package_data` had no effect because the files are not part of the package) Resolves: #7034

This should be the official, supported way of passing SSL context to Requests. Let's document and test it, so it does not break in the future. It would be also...

Say you have a server that provides a cert chain A -> B -> D but D is actually signed by C, which is not provided by the chain. (Unfortunately...