Fixed problem with Request Json array

Fixed content type for browsers that also send character encoding, and
now send the JSON data through the Collection system.
v1
Cuonic 13 years ago
parent 33e79cbc7a
commit a8f50e2f4b

@ -185,9 +185,11 @@ class Request {
$this->query->setData($_GET); $this->query->setData($_GET);
} }
if ($this->type == 'application/json' && $this->body != '') { if (strpos($this->type, 'application/json') === 0 && $this->body != '') {
$this->json = json_decode($this->body, true); $this->json = json_decode($this->body, true);
$this->json = new Collection($this->json);
} }
} }
/** /**

Loading…
Cancel
Save