mirror of
https://github.com/getgrav/grav.git
synced 2026-03-04 11:31:43 +01:00
fixed http_response_code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user