diff --git a/ExtLibs/Utilities/Download.cs b/ExtLibs/Utilities/Download.cs index 8addd6f0e5..205035feea 100644 --- a/ExtLibs/Utilities/Download.cs +++ b/ExtLibs/Utilities/Download.cs @@ -350,7 +350,7 @@ public static async Task getFilefromNetAsync(string url, string saveto, Ac RequestModification?.Invoke(url, request); - using (var response = await client.SendAsync(request).ConfigureAwait(false)) + using (var response = await client.SendAsync(request, completionOption: HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false)) { lock (log) log.Info(url + " " +(response).StatusCode.ToString()); @@ -458,7 +458,7 @@ public static bool getFilefromNet(string url, string saveto, Action client.Timeout = TimeSpan.FromSeconds(30); // Get the response. - var response = client.GetAsync(url).Result; + var response = client.GetAsync(url, completionOption: HttpCompletionOption.ResponseHeadersRead).Result; // Display the status. lock (log) log.Info(response.ReasonPhrase);