Skip to content

Commit

Permalink
Disable SSL verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ask committed Nov 30, 2017
1 parent 6ddf178 commit e9408e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/unit/test_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ def test_dispatch(self):
headers=expected_headers,
timeout=self.req.timeout,
allow_redirects=False,
verify=False,
)
self.req.on_success.assert_called_with(self.req)
self.req.on_success = None
Expand Down Expand Up @@ -103,6 +104,7 @@ def test_dispatch__keepalive_disabled(self):
headers=expected_headers,
timeout=self.req.timeout,
allow_redirects=False,
verify=False,
)
self.req.Session().close.assert_called_once_with()

Expand Down
1 change: 1 addition & 0 deletions thorn/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ def post(self, session=None):
'Hook-Subscription': str(self.subscriber.uuid),
'Host': host,
}),
verify=False,
)

def handle_timeout_error(self, exc, propagate=False):
Expand Down

0 comments on commit e9408e5

Please sign in to comment.