This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author quentel
Recipients christian.heimes, martin.panter, quentel, r.david.murray, terry.reedy, v+python, vstinner
Date 2017-08-02.17:02:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1501693348.71.0.390154870173.issue30576@psf.upfronthosting.co.za>
In-reply-to
Content
In the latest version of the PR, following Martin's comments :
- apply Chunk Transfer for HTTP/1.1 only, change implementation of compression for previous protocols (send gzipped data without Content-Length)
- use http.cookiejar to parse the Accept-Encoding header
- fix a bug with chunk length (conversion to hex)
- support x-gzip besides gzip
- handle Python builds without zlib / gzip

Headers parsing is done in several places in the standard distribution. It should probably be done in a single module, but I think it would be better to open a new issue for that, as it would impact more modules than just http.server.

I couldn't find a simple way to reuse code from http.client to generate HTTP chunks (it's in HTTPConnection._send_output()), but I'm not sure it's worth it, the code to generate a chunk is a one-liner.
History
Date User Action Args
2017-08-02 17:02:28quentelsetrecipients: + quentel, terry.reedy, vstinner, christian.heimes, v+python, r.david.murray, martin.panter
2017-08-02 17:02:28quentelsetmessageid: <1501693348.71.0.390154870173.issue30576@psf.upfronthosting.co.za>
2017-08-02 17:02:28quentellinkissue30576 messages
2017-08-02 17:02:28quentelcreate