You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found that in encode_request, there's no seperate argument for specifying post content-type. Currently if one wants to post in multipart/form-data, one must specify at least one item in files.
I think it'd be better to allow user to select between urlencode (application/x-www-form-urlencoded) and multipart posts. How about allowing files=None, or adding a seperate option, or checking Content-Type in header?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Edit: Please check #2399 for further discussion.
I've found that in
encode_request, there's no seperate argument for specifying post content-type. Currently if one wants to post inmultipart/form-data, one must specify at least one item infiles.I think it'd be better to allow user to select between urlencode (application/x-www-form-urlencoded) and multipart posts. How about allowing
files=None, or adding a seperate option, or checkingContent-Typein header?Beta Was this translation helpful? Give feedback.
All reactions