Skip to content

Commit c03cdb6

Browse files
committed
enabled AppAPIAuthMiddleware for websockets(Nextcloud 32+)
Signed-off-by: bigcat88 <[email protected]>
1 parent 0f8566c commit c03cdb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nc_py_api/ex_app/integration_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def __init__(
241241

242242
async def __call__(self, scope: Scope, receive: Receive, send: Send) -> None:
243243
"""Method that will be called by Starlette for each event."""
244-
if scope["type"] != "http":
244+
if scope["type"] not in ("http", "websocket"):
245245
await self.app(scope, receive, send)
246246
return
247247

0 commit comments

Comments
 (0)