Skip to content

Commit

Permalink
Fit gallery-block request validation
Browse files Browse the repository at this point in the history
  • Loading branch information
violet-dev committed Jan 12, 2025
1 parent 995e4ca commit 4245778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hsync/hsync/Network/NetTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static NetTask MakeDefault(string url, string cookie = "")
=> new NetTask
{
Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.3",
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
TimeoutInfinite = Settings.Instance.Network.TimeoutInfinite,
TimeoutMillisecond = Settings.Instance.Network.TimeoutMillisecond,
AutoRedirection = true,
Expand Down
2 changes: 1 addition & 1 deletion hsync/hsync/Network/NetTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static async Task<List<string>> DownloadStrings(List<string> urls, string
var headers = new Dictionary<string, string>();
// headers["accept"] = "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8";
// headers["user-agent"] = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.3";
// headers["referer"] = "https://hitomi.la/reader/1234.html";
task.Referer = "https://hitomi.la/reader/2996584.html#24-25";
task.Headers = headers;
task.CompleteCallbackString = (str) =>
{
Expand Down

0 comments on commit 4245778

Please sign in to comment.