From aaf977522152c5125f7bb9186fecdba8cb5731a0 Mon Sep 17 00:00:00 2001 From: leiurayer <1432593898@qq.com> Date: Mon, 9 May 2022 21:16:26 +0800 Subject: [PATCH] =?UTF-8?q?Aria=E4=B8=8B=E8=BD=BD=E5=99=A8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0header?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DownKyi.Core/Aria2cNet/Client/Entity/AriaSendData.cs | 8 ++++---- src/DownKyi/Services/Download/AriaDownloadService.cs | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/DownKyi.Core/Aria2cNet/Client/Entity/AriaSendData.cs b/src/DownKyi.Core/Aria2cNet/Client/Entity/AriaSendData.cs index 0bcc88f..e11bb49 100644 --- a/src/DownKyi.Core/Aria2cNet/Client/Entity/AriaSendData.cs +++ b/src/DownKyi.Core/Aria2cNet/Client/Entity/AriaSendData.cs @@ -36,11 +36,11 @@ namespace DownKyi.Core.Aria2cNet.Client.Entity [JsonProperty("dir")] public string Dir { get; set; } - //[JsonProperty("header")] - //public string Header { get; set; } + [JsonProperty("header")] + public string Header { get; set; } - //[JsonProperty("use-head")] - //public string UseHead { get; set; } + [JsonProperty("use-head")] + public string UseHead { get; set; } [JsonProperty("user-agent")] public string UserAgent { get; set; } diff --git a/src/DownKyi/Services/Download/AriaDownloadService.cs b/src/DownKyi/Services/Download/AriaDownloadService.cs index 52d1307..9981b2f 100644 --- a/src/DownKyi/Services/Download/AriaDownloadService.cs +++ b/src/DownKyi/Services/Download/AriaDownloadService.cs @@ -1025,9 +1025,9 @@ namespace DownKyi.Services.Download //HttpProxy = $"http://{Settings.GetAriaHttpProxy()}:{Settings.GetAriaHttpProxyListenPort()}", Dir = path, Out = localFileName, - //Header = $"cookie: {LoginHelper.GetLoginInfoCookiesString()}\nreferer: https://www.bilibili.com", - //UseHead = "true", - UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36", + Header = $"cookie: {LoginHelper.GetLoginInfoCookiesString()}\nreferer: https://www.bilibili.com", + UseHead = "true", + UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36", }; // 如果设置了代理,则增加HttpProxy