From 0b2ed9614d75e51b9ec9bdc82a8995f089911f72 Mon Sep 17 00:00:00 2001 From: Jonathan Harris Date: Mon, 1 Feb 2016 02:43:24 +0000 Subject: [PATCH] Use older requests json syntax. Newer syntax not supported on all recent Linux distros. Reverts 786f34d. --- eddn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eddn.py b/eddn.py index 8577150d..f210a269 100644 --- a/eddn.py +++ b/eddn.py @@ -36,7 +36,7 @@ def send(cmdr, msg): } msg['message']['timestamp'] = time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime(config.getint('querytime') or int(time.time()))) - r = requests.post(upload, json=msg, timeout=timeout) + r = requests.post(upload, data=json.dumps(msg), timeout=timeout) if __debug__ and r.status_code != requests.codes.ok: print 'Status\t%s' % r.status_code print 'URL\t%s' % r.url