Skip to content

Commit

Permalink
Update Request.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor authored Feb 18, 2022
1 parent ed760b0 commit 413e2a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Protocols/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function cookie($name = null, $default = null)
{
if (!isset($this->_data['cookie'])) {
$this->_data['cookie'] = array();
\parse_str(\str_replace('; ', '&', $this->header('cookie', '')), $this->_data['cookie']);
\parse_str(\preg_replace('/; ?/', '&', $this->header('cookie', '')), $this->_data['cookie']);
}
if ($name === null) {
return $this->_data['cookie'];
Expand Down

0 comments on commit 413e2a3

Please sign in to comment.