We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9371a commit bc9c844Copy full SHA for bc9c844
adafruit_httpserver/server.py
@@ -106,6 +106,8 @@ def __init__(
106
if https:
107
self._validate_https_cert_provided(certfile, keyfile)
108
self._ssl_context = self._create_ssl_context(certfile, keyfile)
109
+ else:
110
+ self._ssl_context = None
111
112
if root_path in ["", "/"] and debug:
113
_debug_warning_exposed_files(root_path)
@@ -233,7 +235,7 @@ def serve_forever(
233
235
@staticmethod
234
236
def _create_server_socket(
237
socket_source: _ISocketPool,
- ssl_context: SSLContext,
238
+ ssl_context: "SSLContext | None",
239
host: str,
240
port: int,
241
) -> _ISocket:
0 commit comments