正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -22,7 +22,7 @@ class SimpleRequest | @@ -22,7 +22,7 @@ class SimpleRequest | ||
| 22 | $this->method = $data['method']; | 22 | $this->method = $data['method']; |
| 23 | $this->header = $data['header']; | 23 | $this->header = $data['header']; |
| 24 | $this->cookie = $data['cookie']; | 24 | $this->cookie = $data['cookie']; |
| 25 | - $this->rawContent = $data['rawContent']; | 25 | + $this->rawContent = isset($data['rawContent']) ? $data['rawContent'] : ''; |
| 26 | if ($this->method == 'POST') { | 26 | if ($this->method == 'POST') { |
| 27 | if (count($this->post) == 0) { | 27 | if (count($this->post) == 0) { |
| 28 | $data = json_decode($this->rawContent, true); | 28 | $data = json_decode($this->rawContent, true); |
-
请 注册 或 登录 后发表评论