Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed POST not working

  • Loading branch information...
commit 97a58c23f76097a65564a3d852ea68524519f6db 1 parent 4ead47c
@ojii authored
Showing with 5 additions and 5 deletions.
  1. +1 −1  dnsimple/__init__.py
  2. +4 −4 dnsimple/http.py
View
2  dnsimple/__init__.py
@@ -1 +1 @@
-__version__ = '0.1'
+__version__ = '0.2'
View
8 dnsimple/http.py
@@ -24,16 +24,16 @@ def request(self, method, path, **kwargs):
return self.session.request(method, self._url(path), **kwargs)
def get(self, path, **kwargs):
- return self.request('GET', path, **kwargs)
+ return self.request('GET', path, allow_redirects=True, **kwargs)
def post(self, path, data, **kwargs):
- return self.request('POST', path, **kwargs)
+ return self.request('POST', path, data=data, allow_redirects=True, **kwargs)
def put(self, path, data, **kwargs):
- return self.request('PUT', path, **kwargs)
+ return self.request('PUT', path, data=data, allow_redirects=True, **kwargs)
def delete(self, path, **kwargs):
- return self.request('DELETE', path, **kwargs)
+ return self.request('DELETE', path, allow_redirects=True, **kwargs)
def json_get(self, path):
response = self.get(path, headers={'Accept': 'application/json'})
Please sign in to comment.
Something went wrong with that request. Please try again.