Skip to content

Commit 6ac106f

Browse files
Merge pull request chriskacerguis#635 from gajdot/master
In case of json put request parsed body in order to get the parameters.
2 parents a1c115a + e2a407d commit 6ac106f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

application/libraries/REST_Controller.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,10 @@ protected function _parse_put()
14351435
if ($this->request->format)
14361436
{
14371437
$this->request->body = $this->input->raw_input_stream;
1438+
if ($this->request->format === 'json')
1439+
{
1440+
$this->_put_args = json_decode($this->input->raw_input_stream);
1441+
}
14381442
}
14391443
else if ($this->input->method() === 'put')
14401444
{

0 commit comments

Comments
 (0)