diff --git a/libfreerdp/core/gateway/http.c b/libfreerdp/core/gateway/http.c index a9bdd057a..cee034f51 100644 --- a/libfreerdp/core/gateway/http.c +++ b/libfreerdp/core/gateway/http.c @@ -1421,7 +1421,7 @@ HttpResponse* http_response_recv(rdpTls* tls, BOOL readContentLength) WINPR_ASSERT(response->BodyLength == 0); bodyLength = response->BodyLength; /* expected body length */ - if (readContentLength && (response->BodyLength > 0)) + if (readContentLength && (response->ContentLength > 0)) { const char* cur = response->ContentType;