Explorar o código

fix fastapi support

wangweimin %!s(int64=2) %!d(string=hai) anos
pai
achega
012393608e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      pywebio/platform/fastapi.py

+ 1 - 1
pywebio/platform/fastapi.py

@@ -97,7 +97,7 @@ def _webio_routes(applications, cdn, check_origin_func, reconnect_timeout):
                 if text:
                     handler.send_client_data(text)
                 if binary:
-                    handler.send_client_data(text)
+                    handler.send_client_data(binary)
             except WebSocketDisconnect:
                 handler.notify_connection_lost()
                 break