瀏覽代碼

fix fastapi support

wangweimin 2 年之前
父節點
當前提交
012393608e
共有 1 個文件被更改,包括 1 次插入1 次删除
  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