Skip to content

Commit 1d26c72

Browse files
fbiduorsenthil
authored andcommitted
bpo-34576 warn users on security for http.server (#9720)
It was proposed to add an warning for http.server regarding security issues. The wording was provided at bpo-26005 by @orsenthil
1 parent a6b3ec5 commit 1d26c72

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/library/http.server.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616

1717
This module defines classes for implementing HTTP servers (Web servers).
1818

19+
Security Considerations
20+
-----------------------
21+
22+
http.server is meant for demo purposes and does not implement the stringent
23+
security checks needed of real HTTP server. We do not recommend
24+
using this module directly in production.
25+
26+
1927
One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass.
2028
It creates and listens at the HTTP socket, dispatching the requests to a
2129
handler. Code to create and run the server looks like this::

0 commit comments

Comments
 (0)