Stéphane Blondon <stephane.blon...@gmail.com> added the comment:

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

----------
nosy: +sblondon

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42643>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to