浏览代码

Update Request.php

walkor 3 年之前
父节点
当前提交
413e2a3eb9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Protocols/Http/Request.php

+ 1 - 1
Protocols/Http/Request.php

@@ -164,7 +164,7 @@ class Request
     {
         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'];