Skip to content

Commit fbc23b4

Browse files
committed
Fix HttpDownloadFileAsync to use CustomWebClient
1 parent bc6bc16 commit fbc23b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Nuke.Common/IO/HttpTasks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static async Task HttpDownloadFileAsync(
5555
Action<WebHeaderCollection> headerConfigurator = null,
5656
Action<WebRequest> requestConfigurator = null)
5757
{
58-
var webClient = new WebClient();
58+
WebClient webClient = new CustomWebClient(requestConfigurator);
5959
webClient = clientConfigurator.InvokeSafe(webClient);
6060
headerConfigurator?.Invoke(webClient.Headers);
6161

0 commit comments

Comments
 (0)