fixed http_response_code

This commit is contained in:
Andy Miller
2014-11-30 22:51:24 -07:00
parent 7262fbac55
commit f2f00bb09b

View File

@@ -283,9 +283,9 @@ class Grav extends Container
// $this['debugger']->sendDataInHeaders();
}
// Set status code
if (isset($this['page']->header()->status)) {
header($this['page']->header()->status);
// Set HTTP response code
if (isset($this['page']->header()->http_response_code)) {
http_response_code($this['page']->header()->http_response_code);
}
}