From 2aba4fe1f28938610bc663dca0183f958db83525 Mon Sep 17 00:00:00 2001 From: Daniel Nowak <13685818+lowlyocean@users.noreply.github.com> Date: Sun, 6 Jan 2019 09:34:36 -0500 Subject: [PATCH] StringIO does not operate on bytes --- ir_webstats/client.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ir_webstats/client.py b/ir_webstats/client.py index 09d8500..45c8392 100644 --- a/ir_webstats/client.py +++ b/ir_webstats/client.py @@ -131,8 +131,7 @@ def __req(self, url, data=None, cookie=None, grab_cookie=False, if (data is None) or useget: resp = requests.get(url, headers=h, params=data) else: - h['Content-Type'] = 'application/x-www-form-urlencoded;\ - charset=UTF-8' + h['Content-Type'] = 'application/x-www-form-urlencoded' resp = requests.post(url, data=data, headers=h) if 'Set-Cookie' in resp.headers and grab_cookie: self.last_cookie = resp.headers['Set-Cookie']