Skip to content

Commit 1806606

Browse files
author
Joe Natter
committed
RemoteCommanding(): Always send cr-lf in auto mode
1 parent 27f3258 commit 1806606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RemoteCommanding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ Success RemoteCommanding::responseReceive()
473473
{
474474
lfToCrLf(resp.data(), str);
475475

476-
if (str.size() && str.back() != '\n')
476+
if (!str.size() || str.back() != '\n')
477477
str += "\r\n";
478478

479479
mpTrans->send(str.c_str(), str.size());

0 commit comments

Comments
 (0)