Skip to content

Commit 172049e

Browse files
committed
Also set iBodyLengthConsumed to zero when parsing
1 parent fe46191 commit 172049e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HttpClient.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,7 @@ int HttpClient::readHeader()
686686
// Just in case we get multiple Content-Length headers, this
687687
// will ensure we just get the value of the last one
688688
iContentLength = 0;
689+
iBodyLengthConsumed = 0;
689690
}
690691
}
691692
else if ((iContentLengthPtr == kContentLengthPrefix) && (c == '\r'))

0 commit comments

Comments
 (0)