Skip to content

Commit 1a8d2d9

Browse files
authored
fix: use method_whitelist kwarg for urllib3 < 2.0 (#148)
* fix: use method_whitelist kwarg for urllib3 < 2.0
1 parent 299487b commit 1a8d2d9

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1111

1212
## [1.1.0] - 2023-09-08
1313

14+
### Fixed
15+
16+
- Revert change to urllib3 Retry constructor `method_whitelist`/`allowed_methods` kwarg ([#148](https://github.com/cloudsmith-io/cloudsmith-cli/pull/148))
17+
1418
### Added
1519

1620
- Added support for large file uploads ([#143](https://github.com/cloudsmith-io/cloudsmith-cli/pull/143))

CONTRIBUTORS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ We'd also like to say thank you to the following people (in alphabetical order),
2222
- Rob Madole ([@robmadole](https://github.com/robmadole))
2323
- Sean Allen ([@SeanTAllen](https://github.com/SeanTAllen))
2424
- Jesse Rhoads ([@JesseRhoads-PD](https://github.com/JesseRhoads-PD))
25+
- Pierre Gergondet ([@gergondet](https://github.com/gergondet))

cloudsmith_cli/core/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def create_requests_session(
106106
retry = RetryWithCallback(
107107
backoff_factor=backoff_factor,
108108
connect=retries,
109-
allowed_methods=False,
109+
method_whitelist=False,
110110
read=retries,
111111
status_forcelist=tuple(status_forcelist),
112112
status=retries,

0 commit comments

Comments
 (0)