From 81bfd119ea7a04e31fc53c8d12d85acb964d8515 Mon Sep 17 00:00:00 2001 From: Cheng C Yang Date: Thu, 3 Jan 2019 14:57:03 +0800 Subject: Fix disconnection problem for HTML5 SOL When using Legacy Boot Mode in Intel platforms, HTML5 SOL console will be disconnected when host start. When host start, BIOS will send some non UTF-8 data to SOL console, then SOL console will be disconnected. Changing to binary format can make WSS protocol work correctly with non UTF-8 data. Change-Id: I9a440220f16eb07d800dc291897ab3106cd40c32 Signed-off-by: Cheng C Yang --- include/obmc_console.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/obmc_console.hpp') diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp index a88357fbae..436f6c6cf1 100644 --- a/include/obmc_console.hpp +++ b/include/obmc_console.hpp @@ -79,7 +79,7 @@ void doRead() boost::beast::string_view payload(outputBuffer.data(), bytesRead); for (auto session : sessions) { - session->sendText(payload); + session->sendBinary(payload); } doRead(); }); -- cgit v1.2.3