From aa5e051ed399834bd83724b88add5908501e54c9 Mon Sep 17 00:00:00 2001 From: alex-eri Date: Sat, 25 Mar 2017 23:27:45 +0300 Subject: [PATCH] fixex #1750 trivial --- aiohttp/formdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiohttp/formdata.py b/aiohttp/formdata.py index e6fb1f9b7bc..2a141dc6bf5 100644 --- a/aiohttp/formdata.py +++ b/aiohttp/formdata.py @@ -96,7 +96,7 @@ def _gen_form_urlencoded(self): charset = self._charset if self._charset is not None else 'utf-8' return payload.BytesPayload( - urlencode(data, doseq=True).encode(charset), + urlencode(data, doseq=True, encoding=charset).encode(), content_type='application/x-www-form-urlencoded') def _gen_form_data(self):