Update uri.php
This commit is contained in:
parent
1da455529b
commit
25fc749e27
|
@ -115,6 +115,7 @@ if(!is_fn("read_requests")) {
|
||||||
"_YAML" => false,
|
"_YAML" => false,
|
||||||
"_CSPT" => false,
|
"_CSPT" => false,
|
||||||
"_SERVER" => array_map("make_safe_argument", get_array($_SERVER)),
|
"_SERVER" => array_map("make_safe_argument", get_array($_SERVER)),
|
||||||
|
"_HEADER" => getallheaders()
|
||||||
);
|
);
|
||||||
|
|
||||||
// check if json or serialized request
|
// check if json or serialized request
|
||||||
|
@ -431,3 +432,18 @@ if(!is_fn("set_header_content_type")) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!is_fn("get_header_value")) {
|
||||||
|
function get_header_value($name) {
|
||||||
|
$value = false;
|
||||||
|
|
||||||
|
$requests = get_requests();
|
||||||
|
foreach ($requests['_HEADER'] as $k=>$v) {
|
||||||
|
if (strtolower($k) == strtolower($name)) {
|
||||||
|
$value = $v;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user