Skip to content

Commit d73ed58

Browse files
committed
bump + fix asgi
1 parent 226ae66 commit d73ed58

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.29"
7+
version = "0.0.30"
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.29",
61+
version="0.0.30",
6262
platforms=["any"],
6363
author="Ciro Spaciari",
6464
author_email="ciro.spaciari@gmail.com",

src/socketify/asgi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,8 @@ def __init__(
573573
self.server = App(options, task_factory_max_items=0)
574574
self.SERVER_PORT = None
575575
self.SERVER_HOST = ""
576-
self.SERVER_SCHEME = "https" if self.server.options and self.server.options.cert_file_name is not None else "http"
577-
self.SERVER_WS_SCHEME = "wss" if self.server.options and self.server.options.cert_file_name is not None else "ws"
576+
self.SERVER_SCHEME = "https" if options and options.cert_file_name is not None else "http"
577+
self.SERVER_WS_SCHEME = "wss" if options and options.cert_file_name is not None else "ws"
578578
self.task_factory_max_items = task_factory_max_items
579579
self.lifespan = lifespan
580580

0 commit comments

Comments
 (0)