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 vstinner
Recipients martin.panter, quentel, r.david.murray, terry.reedy, v+python, vstinner
Date 2017-07-21.08:43:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500626618.86.0.271739714782.issue30576@psf.upfronthosting.co.za>
In-reply-to
Content
I used a lot http.server in the past to transfer files between two computers. I like transparent compression on the file. The implementation doesn't seem so complex, gzip is now standard and client HTTP headers are used to decide if gzip is wanted or not.

But I have comments on the current implementation.

My main question is on the Content-Length. Can we skip it to not have to compress the whole file just to get its size, whereas we can use gzip as a "stream" when compress while we write compressed bytes on the socket?
History
Date User Action Args
2017-07-21 08:43:38vstinnersetrecipients: + vstinner, terry.reedy, v+python, r.david.murray, quentel, martin.panter
2017-07-21 08:43:38vstinnersetmessageid: <1500626618.86.0.271739714782.issue30576@psf.upfronthosting.co.za>
2017-07-21 08:43:38vstinnerlinkissue30576 messages
2017-07-21 08:43:38vstinnercreate