Skip to content

Commit

Permalink
Disabled trust for insecure environment
Browse files Browse the repository at this point in the history
requests doesn't a bunch of weird things, including reading auth info
from your ~/.netrc file.  Disable that so our authorization header
doesn't get stomped.
  • Loading branch information
ryannowarm committed Sep 12, 2019
1 parent 84baee3 commit 65474ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mbed_cloud/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ def __init__(self, config):
"""
self.config = config
self.session = requests.Session()
self.session.trust_env = False
self.session.headers.update(
{
"Authorization": "Bearer %s" % self.config.api_key,
Expand Down

0 comments on commit 65474ae

Please sign in to comment.