Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-34576 warn users on security for http.server (GH-9720)
It was proposed to add an warning for http.server regarding security
issues. The wording was provided at bpo-26005 by @orsenthil
(cherry picked from commit 1d26c72)

Co-authored-by: Felipe Rodrigues <felipe@felipevr.com>
  • Loading branch information
fbidu authored and miss-islington committed Oct 11, 2018
commit fccf62b9adaea92f88c7918bc6ece92ad0f3fc5c
8 changes: 8 additions & 0 deletions Doc/library/http.server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@

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

Security Considerations
-----------------------

http.server is meant for demo purposes and does not implement the stringent
security checks needed of real HTTP server. We do not recommend
using this module directly in production.


One class, :class:`HTTPServer`, is a :class:`socketserver.TCPServer` subclass.
It creates and listens at the HTTP socket, dispatching the requests to a
handler. Code to create and run the server looks like this::
Expand Down