From 2591d100ca4073b42e82969886210dabdc261686 Mon Sep 17 00:00:00 2001 From: Asbelos Date: Wed, 15 Jan 2025 19:38:41 +0000 Subject: [PATCH] browser barf on \n --- WifiESP32.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/WifiESP32.cpp b/WifiESP32.cpp index 5355a0d..3b9d6bd 100644 --- a/WifiESP32.cpp +++ b/WifiESP32.cpp @@ -398,6 +398,8 @@ void WifiESP::loop() { for(int i=0;iread(); if (c >= 0) // Panic check, should never be false + // websocket implementations at browser end can barf at \b + if (websocket && (cout=='\n')) cout='\r'; buffer[i+wsHeaderLen] = (char)c; else { DIAG(F("Ringread fail at %d"),i);