mirror of
https://github.com/github/codeql.git
synced 2026-02-27 12:23:41 +01:00
We are no longer bound to the platform-specific directories, so simplify the test organization. If you don't want this change, just skip merging this PR. It's purely optional. I kept the platform-specific directories around under `kotlin`, but you could also easily merge all these together if you find them unhelpful. I'll leave that change to you.
13 lines
327 B
Python
13 lines
327 B
Python
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
|
import ssl
|
|
|
|
|
|
httpd = HTTPServer(('localhost', 4443), SimpleHTTPRequestHandler)
|
|
|
|
sslctx = ssl.SSLContext()
|
|
sslctx.load_cert_chain(certfile="../cert.pem", keyfile="../key.pem")
|
|
|
|
httpd.socket = sslctx.wrap_socket (httpd.socket, server_side=True)
|
|
|
|
httpd.serve_forever()
|