blob: a396e95cd83f82a8d634848f52cc4ba16ad28a64 (
plain)
1
2
3
4
5
6
|
``python -m http.server`` no longer allows terminal control characters sent
within a garbage request to be printed to the stderr server log.
This is done by changing the :mod:`http.server` :class:`BaseHTTPRequestHandler`
``.log_message`` method to replace control characters with a ``\xHH`` hex escape
before printing.
|