From 971089fc2a09e4bcb872efac52c1b014af16fff9 Mon Sep 17 00:00:00 2001 From: Senthil Kumaran Date: Fri, 26 Oct 2018 01:27:09 -0700 Subject: [2.7] bpo-34576 : Backport eeab510 2.7 (#10115) * bpo-34576 - Fix the formatting for security considerations in http.server.rst (#10005) * Address review comment.. (cherry picked from commit eeab510bb7e51802c18b3770cbb23ae0ca91da6b) Co-authored-by: Senthil Kumaran --- Doc/library/simplehttpserver.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/simplehttpserver.rst b/Doc/library/simplehttpserver.rst index 2e7e97a..df8699e 100644 --- a/Doc/library/simplehttpserver.rst +++ b/Doc/library/simplehttpserver.rst @@ -11,6 +11,10 @@ Python 3. The :term:`2to3` tool will automatically adapt imports when converting your sources to Python 3. +.. warning:: + + mod:`SimpleHTTServer` is not recommended for production. It only implements + basic security checks. The :mod:`SimpleHTTPServer` module defines a single class, :class:`SimpleHTTPRequestHandler`, which is interface-compatible with -- cgit v0.12