Skip to content

Commit

Permalink
fix wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Oct 29, 2024
1 parent 328e249 commit d2f26c6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "socketify"
version = "0.0.30"
version = "0.0.31"
dynamic = ["dependencies"]
authors = [
{ name="Ciro Spaciari", email="[email protected]" },
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@

setuptools.setup(
name="socketify",
version="0.0.30",
version="0.0.31",
platforms=["any"],
author="Ciro Spaciari",
author_email="[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions src/socketify/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def __init__(
self.server = App(options, task_factory_max_items=0)
self.SERVER_HOST = None
self.SERVER_PORT = None
self.SERVER_WS_SCHEME = "wss" if self.server.options else "ws"
self.SERVER_WS_SCHEME = "wss" if self.server._options else "ws"
self.wsgi = app
self.EMPTY_WSGI_BODY = WSGIBody(BytesIO())
self.BASIC_ENVIRON = dict(os.environ)
Expand Down Expand Up @@ -671,7 +671,7 @@ def listen(self, port_or_options, handler=None):
"wsgi.errors": sys.stderr,
"wsgi.version": (1, 0),
"wsgi.run_once": False,
"wsgi.url_scheme": "https" if self.server.options and self.server.options.cert_file_name is not None else "http",
"wsgi.url_scheme": "https" if self.server._options and self.server._options.cert_file_name is not None else "http",
"wsgi.multithread": False,
"wsgi.multiprocess": False,
"wsgi.file_wrapper": None, # No file wrapper support for now
Expand Down

0 comments on commit d2f26c6

Please sign in to comment.