Skip to content

Commit

Permalink
[Hardening] HTTP connector resilient to SSL invalid certs
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Sep 6, 2019
1 parent be978a0 commit 065e838
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions geonode/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ def request(self, url, method='GET', data=None, headers={}, stream=False, timeou
pool_connections=self.pool_connections
)
session.mount("{scheme}://".format(scheme=urlparse.urlsplit(url).scheme), adapter)
session.verify = False
action = getattr(session, method.lower(), None)
if action:
response = action(
Expand Down

0 comments on commit 065e838

Please sign in to comment.