Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround for requests 2.32.3 (#5665)
manually call 'load_default_certs()' for SSLContexts in custom HTTPAdapter instances
- Loading branch information
6cfbc10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we supposed to compare strings this way?
I currently use 2.31.0, which shouldn't need this workaround, but it would return
True
forrequests.__version__ > "2.31"
if you compare these two strings.(Please let me know if it's not appropriate to comment on commit!)
6cfbc10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is definitely not the proper way, but it usually kind of works without having to convert the version string to numbers. Unless you make stupid mistakes like me ... and I even initially had it as
not requests.__version__ < "2.32"
, which wouldn't have this issue I think.It is very appropriate when pointing out mistakes like this.
6cfbc10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 5d3d03a