minor fix in 'Static HTTP web server with SSL support'
- signed-off-by: trimstray <trimstray@gmail.com>
This commit is contained in:
parent
ba85706022
commit
4925ff93dc
@ -3286,7 +3286,6 @@ python -m SimpleHTTPServer 8000
|
|||||||
from http.server import HTTPServer, BaseHTTPRequestHandler
|
from http.server import HTTPServer, BaseHTTPRequestHandler
|
||||||
import ssl
|
import ssl
|
||||||
|
|
||||||
|
|
||||||
httpd = HTTPServer(('localhost', 4443), BaseHTTPRequestHandler)
|
httpd = HTTPServer(('localhost', 4443), BaseHTTPRequestHandler)
|
||||||
|
|
||||||
httpd.socket = ssl.wrap_socket (httpd.socket,
|
httpd.socket = ssl.wrap_socket (httpd.socket,
|
||||||
|
Loading…
Reference in New Issue
Block a user