Use the older requests API

This commit is contained in:
Alex Gaynor
2014-11-18 09:09:56 -08:00
parent efaec60e6b
commit a9e0028007
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -476,8 +476,9 @@ class Client(object):
def send(self, json_obj):
try:
acme_object_validate(json.dumps(json_obj))
response = requests.get(self.server_url, json=json_obj)
json_encoded = json.dumps(json_obj)
acme_object_validate(json_encoded)
response = requests.get(self.server_url, data=json_encoded)
body = response.content
acme_object_validate(body)
return response.json()
+1 -1
View File
@@ -71,7 +71,7 @@ setup(
],
install_requires=[
#'dialog',
'requests>=2.4.3',
'requests',
'protobuf',
'python-augeas',
'pycrypto',