diff options
author | Cheng C Yang <cheng.c.yang@linux.intel.com> | 2019-01-03 09:57:03 +0300 |
---|---|---|
committer | Ed Tanous <ed.tanous@intel.com> | 2019-01-10 07:23:12 +0300 |
commit | 81bfd119ea7a04e31fc53c8d12d85acb964d8515 (patch) | |
tree | be458845bc81fba14761ba4b73db2c29bfbcc6be /include/obmc_console.hpp | |
parent | 947326618971c0f658f4a5348df2f47d8819b165 (diff) | |
download | bmcweb-81bfd119ea7a04e31fc53c8d12d85acb964d8515.tar.xz |
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 <cheng.c.yang@linux.intel.com>
Diffstat (limited to 'include/obmc_console.hpp')
-rw-r--r-- | include/obmc_console.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); }); |