mirror of
https://github.com/C9Glax/tranga.git
synced 2025-02-22 23:30:13 +01:00
Add Chromium referer header
This commit is contained in:
parent
bb8a514830
commit
603e1b41d9
@ -73,6 +73,7 @@ internal class ChromiumDownloadClient : DownloadClient
|
||||
return new RequestResult(HttpStatusCode.InternalServerError, null, Stream.Null);
|
||||
IPage page = _browser.NewPageAsync().Result;
|
||||
page.DefaultTimeout = TrangaSettings.ChromiumPageTimeoutMs;
|
||||
page.SetExtraHttpHeadersAsync(new() { { "Referer", referrer } });
|
||||
IResponse response;
|
||||
try
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user