Closed feng-yifan closed 2 years ago
/** * @return bool */ public function acceptJson() { return false !== strpos($this->header('accept'), 'json'); }
如上,若 $this->header('accept') 的值为 null 则产生异常
$this->header('accept')
null
感谢反馈,主干已经修复。等下个版本一同发布
如上,若
$this->header('accept')
的值为null
则产生异常