Skip to content

Commit

Permalink
fix cpp-check found issue (arangodb#15512)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dronplane authored Jan 13, 2022
1 parent e1ba92c commit 954730e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/SimpleHttpClient/SimpleHttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ void SimpleHttpClient::processChunkedHeader() {
}

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

0 comments on commit 954730e

Please sign in to comment.