-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,8 @@ def _gen_form_urlencoded(self): | |
charset = self._charset if self._charset is not None else 'utf-8' | ||
return payload.BytesPayload( | ||
urlencode(data, doseq=True, encoding=charset).encode(), | ||
content_type='application/x-www-form-urlencoded') | ||
content_type=('application/x-www-form-urlencoded; ' | ||
'charset=%s' % charset)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kxepal
Member
|
||
|
||
def _gen_form_data(self): | ||
"""Encode a list of fields using the multipart/form-data MIME format""" | ||
|
@kxepal what do you think about this line? is this ok?