Skip to content

Commit

Permalink
- Fix crashing with real big responses
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Nov 5, 2023
1 parent 8955730 commit d75f8a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OpenDirectoryDownloader/OpenDirectoryIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ private async Task ProcessWebDirectoryAsync(string threadName, WebDirectory webD

try
{
httpResponseMessage = await HttpClient.GetAsync(webDirectory.Url, cancellationTokenSource.Token);
httpResponseMessage = await HttpClient.GetAsync(webDirectory.Url, HttpCompletionOption.ResponseHeadersRead, cancellationTokenSource.Token);
}
catch (TaskCanceledException)// when (ex.InnerException is TimeoutException)
{
Expand Down

0 comments on commit d75f8a4

Please sign in to comment.