mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-17 21:49:04 +01:00
Display HTTP Response Headers in Options > Info tab
This commit is contained in:
parent
e81c2225dd
commit
4a2d17cac4
@ -10,6 +10,7 @@ use Formwork\Data\DataGetter;
|
||||
use Formwork\Parsers\YAML;
|
||||
use Formwork\Router\RouteParams;
|
||||
use Formwork\Utils\FileSystem;
|
||||
use Formwork\Utils\Header;
|
||||
use Formwork\Utils\HTTPRequest;
|
||||
|
||||
class Options extends AbstractController
|
||||
@ -117,6 +118,7 @@ class Options extends AbstractController
|
||||
'Zend Engine Version' => zend_version()
|
||||
),
|
||||
'HTTP Request Headers' => HTTPRequest::headers(),
|
||||
'HTTP Response Headers' => Header::responseHeaders(),
|
||||
'Server' => array(
|
||||
'IP Address' => $_SERVER['SERVER_ADDR'],
|
||||
'Port' => $_SERVER['SERVER_PORT'],
|
||||
@ -151,6 +153,7 @@ class Options extends AbstractController
|
||||
);
|
||||
|
||||
ksort($data['HTTP Request Headers']);
|
||||
ksort($data['HTTP Response Headers']);
|
||||
|
||||
$this->view('admin', array(
|
||||
'title' => $this->label('options.options'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user