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 sblondon
Recipients Decorater, sblondon
Date 2020-12-24.12:30:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608813020.95.0.0649729726949.issue42643@roundup.psfhosted.org>
In-reply-to
Content
RangeHTTPServer seems to support python3: there is a try-except clause to manage the different import of SimpleHTTPServer:
https://github.com/danvk/RangeHTTPServer/blob/master/RangeHTTPServer/__main__.py#L13

The code is under Apache 2.0 licence. I don't know if it can be integrated in codebase under the PSF licence.

Another question needs to be answered previously: does the maintainers want to add such feature to SimpleHTTPServer (which goal is to be very basic)? They could prefer to add a header refusing the Range header:
Accept-Ranges: none

https://tools.ietf.org/id/draft-ietf-httpbis-p5-range-09.html#header.accept-ranges
History
Date User Action Args
2020-12-24 12:30:20sblondonsetrecipients: + sblondon, Decorater
2020-12-24 12:30:20sblondonsetmessageid: <1608813020.95.0.0649729726949.issue42643@roundup.psfhosted.org>
2020-12-24 12:30:20sblondonlinkissue42643 messages
2020-12-24 12:30:20sblondoncreate