diff --git a/embedded8266/common/http.c b/embedded8266/common/http.c index 59b1856..558404e 100644 --- a/embedded8266/common/http.c +++ b/embedded8266/common/http.c @@ -601,7 +601,7 @@ void ICACHE_FLASH_ATTR WebSocketSend( uint8_t * data, int size ) { START_PACK; PushByte( 0x81 ); - if( size > 126 ) + if( size >= 126 ) { PushByte( 0x00 | 126 ); PushByte( size>>8 );