From fdd5475e373094fb0cb10e6b0c71d64c40dc11c5 Mon Sep 17 00:00:00 2001 From: "iyuu.cn" <367013672@qq.com> Date: Sun, 2 Aug 2020 15:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9qBittorrent=20v4.1.5=E3=80=90?= =?UTF-8?q?=E5=B0=8F=E9=92=A2=E7=82=AE=E7=AD=89=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Client/qBittorrent/qBittorrent.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Client/qBittorrent/qBittorrent.php b/app/Client/qBittorrent/qBittorrent.php index f051b2e..2c83f6e 100644 --- a/app/Client/qBittorrent/qBittorrent.php +++ b/app/Client/qBittorrent/qBittorrent.php @@ -236,7 +236,8 @@ class qBittorrent extends AbstractClient // Find authentication cookie and set in curl connection foreach ($this->curl->response_headers as $header) { if (preg_match('/SID=(\S[^;]+)/', $header, $matches)) { - $this->curl->setHeader('Cookie', $matches[0]); + $qb415 = '; QB_'.$matches[0]; // 兼容qBittorrent v4.1.5[小钢炮等] + $this->curl->setHeader('Cookie', $matches[0].$qb415); return true; } };