mirror of https://github.com/Jackett/Jackett
HttpWebClient: add support for Referrer
This commit is contained in:
parent
b8d40b5259
commit
e476233f07
|
@ -94,6 +94,9 @@ namespace Jackett.Utils.Clients
|
|||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(webRequest.Referer))
|
||||
request.Headers.Referrer = new Uri(webRequest.Referer);
|
||||
|
||||
if (!string.IsNullOrEmpty(webRequest.RawBody))
|
||||
{
|
||||
var type = webRequest.Headers.Where(h => h.Key == "Content-Type").Cast<KeyValuePair<string,string>?>().FirstOrDefault();
|
||||
|
|
Loading…
Reference in New Issue