Skip to content

Commit

Permalink
Merge pull request #1752 from alex-eri/patch-4
Browse files Browse the repository at this point in the history
Encoding is always UTF-8 in POST data #1750
  • Loading branch information
fafhrd91 authored Mar 26, 2017
2 parents 8a539ef + b3aa04b commit f54c5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aiohttp/formdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit f54c5da

Please sign in to comment.