Update uri.php
This commit is contained in:
parent
8198038055
commit
36ce21f0b9
|
@ -94,9 +94,10 @@ if(!check_function_exists("read_requests")) {
|
||||||
// check if json or serialized request
|
// check if json or serialized request
|
||||||
foreach(getallheaders() as $name=>$value) {
|
foreach(getallheaders() as $name=>$value) {
|
||||||
if($name == "Content-Type") {
|
if($name == "Content-Type") {
|
||||||
if($value == "application/json") {
|
$values = explode(";", $value);
|
||||||
|
if(in_array("application/json", $values)) {
|
||||||
$options['json'] = true;
|
$options['json'] = true;
|
||||||
} elseif($value == "application/vnd.php.serialized") {
|
} elseif(in_array("application/vnd.php.serialized", $values)) {
|
||||||
$options['serialized'] = true;
|
$options['serialized'] = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user