Core update (better response handling)
This commit is contained in:
parent
52a9db7a44
commit
5568460a81
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ class YellowPage
|
|||
{
|
||||
$this->error(500, "Parser '".$this->get("parser")."' does not exist!");
|
||||
}
|
||||
if($this->statusCode==200 && $this->yellow->getRequestHandler()=="core" &&
|
||||
if($this->statusCode==200 &&
|
||||
!$this->yellow->toolbox->isValidContentType($this->getHeader("Content-Type"), $this->getLocation()))
|
||||
{
|
||||
$this->error(500, "Type '".$this->getHeader("Content-Type")."' does not match file name!");
|
||||
|
|
Loading…
Add table
Reference in a new issue