From e03a62349713f221be1b1b241a180c6a72676ff3 Mon Sep 17 00:00:00 2001 From: Vladimir Berezniker Date: Mon, 17 Nov 2025 22:11:42 -0500 Subject: [PATCH] Fix(http): Use ContentLength for checking body existence Corrected the condition introduced in e9890c3 PR (#11961) --- libfreerdp/core/gateway/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;