Skip to content

Commit

Permalink
add headers
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Sep 22, 2020
1 parent f160858 commit 0f4a419
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,9 @@ protected function headers(){
*
* */
protected function options(){
$this->options=array_merge([
'headers'=>$this->headers,
//'verify'=>false
],$this->options);
if(isset($this->options['headers'])) $this->headers=array_merge($this->headers,$this->options['headers']);

$this->options['headers']=$this->headers;
$this->options['timeout'] = $this->options['timeout'] ?? 60;

if(isset($this->options['proxy']) && $this->options['proxy']===true) {
Expand Down

0 comments on commit 0f4a419

Please sign in to comment.