use php://input if body is null
Merge pull request #816 from mnlg/use-php-input

use php://input if body is null