Message299664
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. |
|
Date |
User |
Action |
Args |
2017-08-02 17:02:28 | quentel | set | recipients:
+ quentel, terry.reedy, vstinner, christian.heimes, v+python, r.david.murray, martin.panter |
2017-08-02 17:02:28 | quentel | set | messageid: <1501693348.71.0.390154870173.issue30576@psf.upfronthosting.co.za> |
2017-08-02 17:02:28 | quentel | link | issue30576 messages |
2017-08-02 17:02:28 | quentel | create | |
|