Skip to content

Commit

Permalink
Add Request Options
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Aug 22, 2019
1 parent 47f2bf1 commit 5a30ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 5a30ebd

Please sign in to comment.