Skip to content

Commit

Permalink
Use default cacert
Browse files Browse the repository at this point in the history
Uses the default cacert (e.g. set via s = requests.Sessions(), s.verify = cacert) when it's not passed in via s.get(url, verify=cacert).
  • Loading branch information
AndTheDaysGoBy committed Jan 11, 2019
1 parent 5c1f72e commit dc35933
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def get(self, url, **kwargs):
:param \*\*kwargs: Optional arguments that ``request`` takes.
:rtype: requests.Response
"""

kawrgs.setdefault('verify', self.verify)
kwargs.setdefault('allow_redirects', True)
return self.request('GET', url, **kwargs)

Expand Down

0 comments on commit dc35933

Please sign in to comment.