From 5a30ebdcf033ffba258275fe5216a71db73a529f Mon Sep 17 00:00:00 2001 From: lin <465382251@qq.com> Date: Thu, 22 Aug 2019 18:02:13 +0800 Subject: [PATCH] Add Request Options --- src/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Request.php b/src/Request.php index 499fc60..56d64ff 100644 --- a/src/Request.php +++ b/src/Request.php @@ -95,7 +95,7 @@ protected function options(){ $this->options['timeout'] = $this->options['timeout'] ?? 60; - if($this->options['proxy']===true) { + if(isset($this->options['proxy']) && $this->options['proxy']===true) { $this->options['proxy']=[ 'http' => 'http://127.0.0.1:12333', 'https' => 'http://127.0.0.1:12333',