Update uri.php
This commit is contained in:
parent
af219011bb
commit
50bad9debc
|
@ -57,11 +57,10 @@ if(!function_exists("read_requests")) {
|
||||||
|
|
||||||
// check if json request
|
// check if json request
|
||||||
foreach(getallheaders() as $name=>$value) {
|
foreach(getallheaders() as $name=>$value) {
|
||||||
if($name == "Accept") {
|
if($name == "Content-Type") {
|
||||||
$accepts = explode(',', $value);
|
if($value == "application/json") {
|
||||||
if(in_array("application/json", $accepts)) {
|
|
||||||
$options['json'] = true;
|
$options['json'] = true;
|
||||||
} elseif(in_array("application/vnd.php.serialized", $accepts)) {
|
} elseif($value == "application/vnd.php.serialized") {
|
||||||
$options['serialized'] = true;
|
$options['serialized'] = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user