Permalink
Browse files

fixed POST not working

  • Loading branch information...
1 parent 4ead47c commit 97a58c23f76097a65564a3d852ea68524519f6db @ojii committed May 4, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 dnsimple/__init__.py
  2. +4 −4 dnsimple/http.py
View
@@ -1 +1 @@
-__version__ = '0.1'
+__version__ = '0.2'
View
@@ -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'})

0 comments on commit 97a58c2

Please sign in to comment.