Skip to content

Commit 36c0df2

Browse files
committed
Fix infinite loop when the buffer ends with \r
1 parent de1876c commit 36c0df2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HTTPConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ void HTTPConnection::readLine(int lengthLimit) {
306306
}
307307
} else {
308308
_parserLine.text += newChar;
309-
_bufferProcessed += 1;
310309
}
310+
_bufferProcessed += 1;
311311

312312
// Check that the max request string size is not exceeded
313313
if (_parserLine.text.length() > lengthLimit) {

0 commit comments

Comments
 (0)