From 02741fff00c8b49d7e0fd39639613e4c6c2e9879 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Thu, 25 May 2017 12:40:39 +0200 Subject: [PATCH] [WebIO] Fix moddownload (don't enforce content length) --- src/Utils/WebIO.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Utils/WebIO.cpp b/src/Utils/WebIO.cpp index a2ee8227..b1aee4b1 100644 --- a/src/Utils/WebIO.cpp +++ b/src/Utils/WebIO.cpp @@ -313,8 +313,7 @@ namespace Utils length = sizeof(statusCode); if (HttpQueryInfo(this->hFile, HTTP_QUERY_FLAG_NUMBER | HTTP_QUERY_CONTENT_LENGTH, &contentLength, &length, nullptr) == FALSE) { - this->closeConnection(); - return ""; + contentLength = 0; } std::string returnBuffer;