From 30e7829d210213370c3c7ead50b4dfa51c62ee5e Mon Sep 17 00:00:00 2001 From: JaguarJack Date: Fri, 22 May 2020 15:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/catcher/library/client/Http.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extend/catcher/library/client/Http.php b/extend/catcher/library/client/Http.php index 2331f70..59b8b3b 100644 --- a/extend/catcher/library/client/Http.php +++ b/extend/catcher/library/client/Http.php @@ -349,7 +349,9 @@ class Http */ public function auth($username, $password) { - $this->auth = [$username, $password]; + $this->options = [ + 'auth' => $username, $password + ]; return $this; }