Update HttpClient.cpp

Fixed wrong behavior when no Content-Length header present and calling endOfBodyReached() returned true.