Closed ericof closed 12 years ago
I've updated the master with a number of changes and released a new version of repoze.xmliter (0.5). Please give it a go with cherrypy server to check it all works.
I've liked your approach. Right now we are not reporting the content-length but it's working beautifully with Paste and CherryPy
Thanks
Some applications return a Content-Range header that was being sent to the client without proper handling.
The following is a request to the example wsgi server config package with Diazo:
As seen above, Content-Length was updated but Content-Range was not, the client browser used the value sent by Content-Range and closed the connection after 188 bytes.
This pull request deals with it by:
Note: As cherrypy server sets the output header as soon as start_response is called, I created a function to deferrer execution of it until we have the headers updated.