Ticket #786 (defect)
Opened 6 months ago
Last modified 2 months ago
wsgiserver should? protect Content-Length
Status: closed (worksforme)
| Reported by: | fumanchu | Assigned to: | fumanchu |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1 |
| Component: | CherryPy code | Keywords: | |
| Cc: |
See http://mail.python.org/pipermail/web-sig/2008-January/003109.html
For reading, we could make a wsgi.input class which performs its own Content-Length checking and does not allow an application to read past CL. For writes, it might be good if the server did not allow the app to yield more (or less!) bytes than CL.
Change History
03/14/08 10:39:51: Modified by fumanchu
- status changed from new to closed.
- resolution set to worksforme.
05/23/08 02:52:23: Modified by davidf@sjsoft.com
The above code seems to have a bug... by default self.max_request_body_size is 0, but then the remaining message is never read, even if CONTENT_LENGTH is set... see #819 for the details and a fix


Looks like this was done in [1786]: