parent
adfcc5596e
commit
a444b8adf5
|
@ -3,6 +3,7 @@
|
|||
|
||||
namespace Icinga\Web;
|
||||
|
||||
use Icinga\Util\Json;
|
||||
use Zend_Controller_Request_Http;
|
||||
use Icinga\Application\Icinga;
|
||||
use Icinga\User;
|
||||
|
@ -120,4 +121,11 @@ class Request extends Zend_Controller_Request_Http
|
|||
|
||||
return $id . '-' . $this->uniqueId;
|
||||
}
|
||||
|
||||
public function getPost($key = null, $default = null)
|
||||
{
|
||||
return $key === null && $this->isApiRequest()
|
||||
? Json::decode(file_get_contents('php://input'), true)
|
||||
: parent::getPost($key, $default);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue