[WebIO] Fix moddownload (don't enforce content length)
This commit is contained in:
parent
2066bab4fc
commit
02741fff00
@ -313,8 +313,7 @@ namespace Utils
|
|||||||
length = sizeof(statusCode);
|
length = sizeof(statusCode);
|
||||||
if (HttpQueryInfo(this->hFile, HTTP_QUERY_FLAG_NUMBER | HTTP_QUERY_CONTENT_LENGTH, &contentLength, &length, nullptr) == FALSE)
|
if (HttpQueryInfo(this->hFile, HTTP_QUERY_FLAG_NUMBER | HTTP_QUERY_CONTENT_LENGTH, &contentLength, &length, nullptr) == FALSE)
|
||||||
{
|
{
|
||||||
this->closeConnection();
|
contentLength = 0;
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string returnBuffer;
|
std::string returnBuffer;
|
||||||
|
Loading…
Reference in New Issue
Block a user