|
|
@ -28,7 +28,7 @@ $applicationContext = $builder->build();
|
|
|
|
// Fix for getallheaders() on PHP-FPM and nginx
|
|
|
|
// Fix for getallheaders() on PHP-FPM and nginx
|
|
|
|
if (!function_exists('getallheaders')) {
|
|
|
|
if (!function_exists('getallheaders')) {
|
|
|
|
function getallheaders() {
|
|
|
|
function getallheaders() {
|
|
|
|
$headers = [];
|
|
|
|
$headers = array();
|
|
|
|
foreach ($_SERVER as $name => $value) {
|
|
|
|
foreach ($_SERVER as $name => $value) {
|
|
|
|
if (substr($name, 0, 5) == 'HTTP_') {
|
|
|
|
if (substr($name, 0, 5) == 'HTTP_') {
|
|
|
|
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
|
|
|
|
$headers[str_replace(' ', '-', ucwords(strtolower(str_replace('_', ' ', substr($name, 5)))))] = $value;
|
|
|
|