Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

Commit

Permalink
Merge b19bd70 into 201eb4d
Browse files Browse the repository at this point in the history
  • Loading branch information
clokep committed Jun 29, 2018
2 parents 201eb4d + b19bd70 commit 6c823a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
release history
---------------

next
++++
0.2 (2018-06-29)
++++++++++++++++

* Fixed an exception when invalid JSON is returned from the Strongarm API. See
#32. Thanks to @kovacsbalu for reporting and fixing the issue.
* Update the default API host to point to DNSWatch.

0.1.5 (2016-6-22)
+++++++++++++++++
Expand Down
2 changes: 1 addition & 1 deletion strongarm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
__license__ = 'Apache 2.0'


host = 'https://app.strongarm.io'
host = 'https://dnswatch.watchguard.com'
api_key = None
api_version = '0.1.0' # Developers generally should not change this.

Expand Down
4 changes: 4 additions & 0 deletions strongarm/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def request(method, endpoint, **kwargs):
kwargs['headers']['Accept'] = ('application/json; version=%s' %
strongarm.api_version)

# Don't allow requests to follow redirects, it is generally bad practice to
# allow an API library to follow any redirects.
kwargs['allow_redirects'] = False

# This should only be used for development, never in a production
# environment.
if strongarm._ignore_certificates is True:
Expand Down

0 comments on commit 6c823a9

Please sign in to comment.