fix urlopen data format

This commit is contained in:
Oleg Shlyazhko 2016-01-23 19:49:55 +03:00
parent 80b53f1ab7
commit d1e4eeaf30

View file

@ -41,7 +41,7 @@ class Botan(object):
uid=str(uid),
name=quote(event_name))
request = Request(url,
data=data,
data=data.encode(),
headers={'Content-Type': 'application/json'})
response = urlopen(request)
if response.getcode() != 200: