From fe903d3d24baf38350172bda0f61556e352c14f6 Mon Sep 17 00:00:00 2001 From: Olivier Benz Date: Thu, 15 Feb 2024 12:54:53 +0100 Subject: [PATCH] Use sanitised result of select_subprotocol - Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/442 - Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445 --- jupyter_server_proxy/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jupyter_server_proxy/handlers.py b/jupyter_server_proxy/handlers.py index 2890dc3a..700e8f5c 100644 --- a/jupyter_server_proxy/handlers.py +++ b/jupyter_server_proxy/handlers.py @@ -493,7 +493,7 @@ async def start_websocket_connection(): request=request, on_message_callback=message_cb, on_ping_callback=ping_cb, - subprotocols=self.subprotocols, + subprotocols=self.select_subprotocol(self.subprotocols), resolver=resolver, ) self._record_activity()