Hi,
Another observation from the HTTP server that comes with the Python 3
Standard Library: it does not support non-ASCII headers:
def send_header(self, keyword, value):
"""Send a MIME header."""
if self.request_version != 'HTTP/0.9':
self.wfile.write(("%s: %s\r\n" %
(keyword, value)).encode('ASCII', 'strict'))
Here an implementation that shows how ridiculous a byte based
implementation on top of BaseHTTPServer currently is:
http://paste.pocoo.org/show/140501/
Regards,
Armin
_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe:
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com