From 1416ef8017ea47e691b55ef414c766336457ca78 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marc-Andr=C3=A9=20Moreau?= Date: Tue, 24 Feb 2015 16:39:00 -0500 Subject: [PATCH] libfreerdp-core: fix tsg receiving of text/html content --- libfreerdp/core/gateway/http.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libfreerdp/core/gateway/http.c b/libfreerdp/core/gateway/http.c index 362f1b0..c962550 100644 --- a/libfreerdp/core/gateway/http.c +++ b/libfreerdp/core/gateway/http.c @@ -717,15 +717,15 @@ HttpResponse* http_response_recv(rdpTls* tls) if (response->ContentType) { if (_stricmp(response->ContentType, "text/plain") == 0) - { bodyLength = response->ContentLength; - } + else if (_stricmp(response->ContentType, "text/html") == 0) + bodyLength = response->ContentLength; } if (bodyLength != response->BodyLength) { WLog_WARN(TAG, "http_response_recv: %s unexpected body length: actual: %d, expected: %d", - response->ContentType, response->ContentLength, response->BodyLength); + response->ContentType, bodyLength, response->BodyLength); } break; -- 2.7.4