From 4cd7ffaaafc6a9a196f7e39be833df34ca0a1a6b Mon Sep 17 00:00:00 2001 From: martinlie Date: Thu, 6 Jun 2024 12:36:14 +0200 Subject: [PATCH] fix(lightwave): Split ws msg into 3 parts instead of 4. #2344 (#2345) --- py/h2o_lightwave/h2o_lightwave/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/h2o_lightwave/h2o_lightwave/server.py b/py/h2o_lightwave/h2o_lightwave/server.py index 421e341072..e6ab8bd8c9 100644 --- a/py/h2o_lightwave/h2o_lightwave/server.py +++ b/py/h2o_lightwave/h2o_lightwave/server.py @@ -101,7 +101,7 @@ async def _process(self, args: dict): def _parse_msg(msg: str) -> Optional[dict]: # protocol: t addr data - parts = msg.split(' ', 3) + parts = msg.split(' ', 2) if len(parts) != 3: raise ValueError('Invalid message')