Fix download from IPS4 downloader

This commit is contained in:
Timothy Baldridge 2021-06-18 23:09:36 -06:00
parent 6ba00d9d09
commit b9e241a0b9

View File

@ -130,7 +130,7 @@ namespace Wabbajack.Lib.Downloaders
throw new Exception(
$"File {IPS4File} on mod {IPS4Mod} on {TypedDownloader.SiteName} appears to be re-uploaded with the same name");
var state = new HTTPDownloader.State(fileEntry.Url!) {Client = TypedDownloader.AuthedClient!};
var state = new HTTPDownloader.State(fileEntry.Url!);
if (a.Size == 0) a.Size = fileEntry.Size!.Value;
return await state.Download(a, destination);
}