fix urlopen call

This commit is contained in:
Oleg Shlyazhko 2016-01-23 19:44:40 +03:00
parent 0faa38b8af
commit 80b53f1ab7

View file

@ -43,7 +43,7 @@ class Botan(object):
request = Request(url,
data=data,
headers={'Content-Type': 'application/json'})
response = urlopen(request, json.dumps(data))
response = urlopen(request)
if response.getcode() != 200:
return False
return True