Skip to content

Commit

Permalink
fix Request header() return type
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanderson committed Jun 20, 2019
1 parent 698a75d commit c224c09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/vendor/Eco/System/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getHas($key)
public function header($name, $auto_trim = true)
{
return isset($this->headers()[$name])
? ( $auto_trim ? trim($this->headers()[$name]) : $this->headers()[$name] ) : null;
? ( $auto_trim ? trim($this->headers()[$name]) : $this->headers()[$name] ) : '';
}

/**
Expand Down

0 comments on commit c224c09

Please sign in to comment.