Message291117
| Author |
quentel |
| Recipients |
quentel |
| Date |
2017年04月04日.08:58:50 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1491296331.11.0.181533719685.issue29979@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
In the cgi module, the parse_multipart() function duplicates code from FieldStorage, and the result is not compliant with that of FieldStorage for requests sent with multipart/form-data : for non-file fields, the value associated with a key is a list of *bytes* in parse_multipart() and a list of *strings* for FieldStorage (the bytes decoded with the argument "encoding" passed to FieldStorage()).
I will propose a PR on the Github repo with a version of parse_multipart that uses FieldStorage and returns the same result (values as strings). The function will take an additional argument "encoding". |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年04月04日 08:58:51 | quentel | set | recipients:
+ quentel |
| 2017年04月04日 08:58:51 | quentel | set | messageid: <1491296331.11.0.181533719685.issue29979@psf.upfronthosting.co.za> |
| 2017年04月04日 08:58:51 | quentel | link | issue29979 messages |
| 2017年04月04日 08:58:50 | quentel | create |
|