Message236847
I like Demian’s “expecting_len” technique slightly better because it would avoid calling None.fileno() and len(None), as Demian just said.
Also, I think OPTIONS should be removed from the list of methods that enforce a Content-Length. I wouldn’t normally expect any payload for OPTIONS, since RFC 7231 explicitly says it does not define a use for a payload, but requires a Content-Type if a payload is sent. |
|
Date |
User |
Action |
Args |
2015-02-27 21:47:40 | martin.panter | set | recipients:
+ martin.panter, demian.brecht, jimr |
2015-02-27 21:47:40 | martin.panter | set | messageid: <1425073660.16.0.160942093155.issue23539@psf.upfronthosting.co.za> |
2015-02-27 21:47:40 | martin.panter | link | issue23539 messages |
2015-02-27 21:47:40 | martin.panter | create | |
|