Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tell urllib3 to ignore content length mismatch #232

Merged
merged 1 commit into from Jun 8, 2023

Conversation

jamielennox
Copy link
Owner

In urllib3 v2 they default enforce_content_length to true. This fails now when you mock a request that doesn't have any data that can be partially read.

Fixes: #228

In urllib3 v2 they default enforce_content_length to true. This fails
now when you mock a request that doesn't have any data that can be
partially read.

Fixes: #228
@jamielennox jamielennox merged commit dcbef4f into master Jun 8, 2023
17 checks passed
@jamielennox jamielennox deleted the enforce-content-length branch June 8, 2023 13:32
renovate bot added a commit to allenporter/pyrainbird that referenced this pull request Jun 11, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [requests-mock](https://requests-mock.readthedocs.io/)
([source](https://togithub.com/jamielennox/requests-mock)) | `==1.10.0`
-> `==1.11.0` |
[![age](https://badges.renovateapi.com/packages/pypi/requests-mock/1.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/pypi/requests-mock/1.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/pypi/requests-mock/1.11.0/compatibility-slim/1.10.0)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/pypi/requests-mock/1.11.0/confidence-slim/1.10.0)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>jamielennox/requests-mock</summary>

###
[`v1.11.0`](https://togithub.com/jamielennox/requests-mock/releases/tag/1.11.0)

[Compare
Source](https://togithub.com/jamielennox/requests-mock/compare/1.10.0...1.11.0)

#### What's Changed

- Upgrade GitHub Actions by
[@&#8203;cclauss](https://togithub.com/cclauss) in
[jamielennox/requests-mock#224
- Typing analysis and public type aliases by
[@&#8203;noirbizarre](https://togithub.com/noirbizarre) in
[jamielennox/requests-mock#226
- Use unittest.mock when available on Python > 3.3 by
[@&#8203;jelly](https://togithub.com/jelly) in
[jamielennox/requests-mock#230
- Tell urllib3 to ignore content length mismatch by
[@&#8203;jamielennox](https://togithub.com/jamielennox) in
[jamielennox/requests-mock#232
- Remove testrepository dependency by
[@&#8203;jamielennox](https://togithub.com/jamielennox) in
[jamielennox/requests-mock#229

#### New Contributors

- [@&#8203;cclauss](https://togithub.com/cclauss) made their first
contribution in
[jamielennox/requests-mock#224
- [@&#8203;noirbizarre](https://togithub.com/noirbizarre) made their
first contribution in
[jamielennox/requests-mock#226
- [@&#8203;jelly](https://togithub.com/jelly) made their first
contribution in
[jamielennox/requests-mock#230

**Full Changelog**:
jamielennox/requests-mock@1.10.0...1.11.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/allenporter/pyrainbird).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTAuMCIsInVwZGF0ZWRJblZlciI6IjM1LjExMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ChunkedEncodingError on mocked HEAD requests with urllib3 >= 2.0.0
1 participant