8000 fix cpp-check found issue (#15512) · strogo/arangodb@954730e · GitHub
[go: up one dir, main page]

Skip to content

Commit 954730e

Browse files
authored
fix cpp-check found issue (arangodb#15512)
1 parent e1ba92c commit 954730e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SimpleHttpClient/SimpleHttpClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ void SimpleHttpClient::processChunkedHeader() {
893893
}
894894

895895
// empty lines are an error
896-
if (line[0] == '\r' || line.empty()) {
896+
if (line.empty() || line[0] == '\r') {
897897
setErrorMessage("found invalid Content-Length", true);
898898
// reset connection
899899
this->close();

0 commit comments

Comments
 (0)
0