Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Merge pull request #259 from alphagov/do-not-verify-stagcraft-host
Browse files Browse the repository at this point in the history
Do not verify stagecraft certificate
  • Loading branch information
robyoung committed Apr 2, 2014
2 parents fa4b042 + 1eb95cd commit 9b707e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backdrop/core/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def _get_json_url(url, token):
'Bearer {}'.format(token))
response = requests.get(url, headers=dict([
('content-type', 'application/json'),
auth_header]))
auth_header]), verify=False)
try:
response.raise_for_status()
except requests.HTTPError as e:
Expand Down
1 change: 1 addition & 0 deletions tests/core/test_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def test_get_json_url_sends_correct_request(self, mock_get):
response_content = _get_json_url("my_url", "some_token")
mock_get.assert_called_once_with(
'my_url',
verify=False,
headers={'content-type': 'application/json',
'Authorization': 'Bearer some_token'})
assert_that(response_content, equal_to('[]'))
Expand Down

0 comments on commit 9b707e1

Please sign in to comment.