Fix retry bug introduced by CDN mirror code

This commit is contained in:
Timothy Baldridge 2020-07-20 07:38:05 -06:00
parent c64fb2a815
commit 694738f696

View File

@ -71,7 +71,7 @@ namespace Wabbajack.Lib.Http
return await result.Content.ReadAsStringAsync();
}
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage msg, HttpCompletionOption responseHeadersRead = HttpCompletionOption.ResponseHeadersRead, bool errorsAsExceptions = true, bool retry = false)
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage msg, HttpCompletionOption responseHeadersRead = HttpCompletionOption.ResponseHeadersRead, bool errorsAsExceptions = true, bool retry = true)
{
foreach (var (k, v) in Headers)
msg.Headers.Add(k, v);