diff --git a/src/web/Request.php b/src/web/Request.php index 6a6c570..312e8d9 100644 --- a/src/web/Request.php +++ b/src/web/Request.php @@ -137,7 +137,7 @@ public function getIsFlash() public function getRawBody() { if ($this->_rawBody === null) { - $this->_rawBody = file_get_contents("php://input"); + $this->_rawBody = $this->swooleRequest->rawContent(); return $this->_rawBody; } @@ -770,4 +770,4 @@ private function validateCsrfTokenInternal($clientSuppliedToken, $trueToken) return $security->unmaskToken($clientSuppliedToken) === $security->unmaskToken($trueToken); } -} \ No newline at end of file +}