Skip to content

Commit

Permalink
- Make it work with more servers
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Jul 30, 2021
1 parent 6cb0f96 commit 713d499
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/OpenDirectoryDownloader/OpenDirectoryIndexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public OpenDirectoryIndexer(OpenDirectoryIndexerSettings openDirectoryIndexerSet
Timeout = TimeSpan.FromSeconds(OpenDirectoryIndexerSettings.Timeout)
};

HttpClient.DefaultRequestHeaders.Accept.ParseAdd("*/*");
HttpClient.DefaultRequestHeaders.AcceptEncoding.ParseAdd("gzip, deflate, br");

if (!string.IsNullOrWhiteSpace(OpenDirectoryIndexerSettings.Username) || !string.IsNullOrWhiteSpace(OpenDirectoryIndexerSettings.Password))
Expand Down

0 comments on commit 713d499

Please sign in to comment.