Message238825
| Author |
serhiy.storchaka |
| Recipients |
berker.peksag, demian.brecht, martin.panter, orsenthil, serhiy.storchaka |
| Date |
2015年03月21日.19:02:35 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1426964555.31.0.69348530943.issue23350@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
There are two issues. The one is that calculated Content-Length is not correct for lists, tuples, and other types (such as deque or array.array). The right solution is to calculate size using a technique used in urllib. Content-Length shouldn't be calculated for lists, tuples, and other non-bytes-compatible sequences. This is a bug, and the patch should be applied to all maintained releases.
The second issue is feature request. Allow calculating Content-Length for lists and tuples. |
|