Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
trivial
  • Loading branch information
alex-eri authored Mar 25, 2017
1 parent 8a539ef commit 7b5b2e6
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),
content_type='application/x-www-form-urlencoded')

def _gen_form_data(self):
Expand Down

1 comment on commit 7b5b2e6

@alex-eri
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong type of payload

Please sign in to comment.