Skip to content

Commit 7b8b707

Browse files
committed
Update Downloader.cs
1 parent d4f3ff8 commit 7b8b707

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Tests/Downloader.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@ static Downloader() =>
77
SecurityProtocolType.Tls11 |
88
SecurityProtocolType.Tls12;
99

10-
static HttpClient httpClient = new(new HttpClientHandler
11-
{
12-
AllowAutoRedirect = true
13-
})
10+
static HttpClient httpClient = new(
11+
new HttpClientHandler
12+
{
13+
AllowAutoRedirect = true
14+
})
1415
{
1516
Timeout = TimeSpan.FromSeconds(30)
1617
};
@@ -42,6 +43,7 @@ public static async Task<string> DownloadFile(string targetPath, string requestU
4243
""",
4344
exception);
4445
}
46+
4547
throw new(
4648
$"""
4749
Download failed:

0 commit comments

Comments
 (0)