Skip to content

Commit d2f26c6

Browse files
committed
fix wsgi
1 parent 328e249 commit d2f26c6

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "socketify"
7-
version = "0.0.30"
7+
version = "0.0.31"
88
dynamic = ["dependencies"]
99
authors = [
1010
{ name="Ciro Spaciari", email="ciro.spaciari@gmail.com" },

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858

5959
setuptools.setup(
6060
name="socketify",
61-
version="0.0.30",
61+
version="0.0.31",
6262
platforms=["any"],
6363
author="Ciro Spaciari",
6464
author_email="ciro.spaciari@gmail.com",

src/socketify/wsgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def __init__(
548548
self.server = App(options, task_factory_max_items=0)
549549
self.SERVER_HOST = None
550550
self.SERVER_PORT = None
551-
self.SERVER_WS_SCHEME = "wss" if self.server.options else "ws"
551+
self.SERVER_WS_SCHEME = "wss" if self.server._options else "ws"
552552
self.wsgi = app
553553
self.EMPTY_WSGI_BODY = WSGIBody(BytesIO())
554554
self.BASIC_ENVIRON = dict(os.environ)
@@ -671,7 +671,7 @@ def listen(self, port_or_options, handler=None):
671671
"wsgi.errors": sys.stderr,
672672
"wsgi.version": (1, 0),
673673
"wsgi.run_once": False,
674-
"wsgi.url_scheme": "https" if self.server.options and self.server.options.cert_file_name is not None else "http",
674+
"wsgi.url_scheme": "https" if self.server._options and self.server._options.cert_file_name is not None else "http",
675675
"wsgi.multithread": False,
676676
"wsgi.multiprocess": False,
677677
"wsgi.file_wrapper": None, # No file wrapper support for now

0 commit comments

Comments
 (0)