Merge pull request #12002 from vmpn/vmpn/fix-rdg-bug

Fix respose body existence check when using RDP Gateway
This commit is contained in:
akallabeth
2025-11-18 08:25:52 +01:00
committed by GitHub

View File

@@ -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;