当我添加路由文件'middleware'=>'auth'
时,我收到此ErrorException“标题可能不只包含一个标题,已检测到新行”
我使用Laravel 5。+,MySQL,PHP5
// headers
foreach ($this->headers->allPreserveCaseWithoutCookies() as $name => $values) {
$replace = 0 === strcasecmp($name, 'Content-Type');
foreach ($values as $value) {
header($name.': '.$value, $replace, $this->statusCode);
}
}