mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-24 13:50:47 +02:00
Fixed: (Avistaz) Workaround for fetching "retry-after" header not present when using "Accept: application/json"
This commit is contained in:
parent
eff09c1f72
commit
de2fd92b6f
1 changed files with 2 additions and 1 deletions
|
|
@ -73,7 +73,8 @@ private IEnumerable<IndexerRequest> GetRequest(List<KeyValuePair<string, string>
|
|||
{
|
||||
var searchUrl = SearchUrl + "?" + searchParameters.GetQueryString();
|
||||
|
||||
var request = new IndexerRequest(searchUrl, HttpAccept.Json);
|
||||
// TODO: Change to HttpAccept.Json after they fix the issue with missing headers
|
||||
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
|
||||
request.HttpRequest.Headers.Add("Authorization", $"Bearer {Settings.Token}");
|
||||
|
||||
yield return request;
|
||||
|
|
|
|||
Loading…
Reference in a new issue