|
|
@@ -110,13 +110,6 @@ class ServerRequest implements ServerRequestInterface
|
|
|
protected $trustedProxies = [];
|
|
|
|
|
|
/**
|
|
|
- * Contents of php://input
|
|
|
- *
|
|
|
- * @var string
|
|
|
- */
|
|
|
- protected $_input;
|
|
|
-
|
|
|
- /**
|
|
|
* The built in detectors used with `is()` can be modified with `addDetector()`.
|
|
|
*
|
|
|
* There are several ways to specify a detector, see \Cake\Http\ServerRequest::addDetector() for the
|
|
|
@@ -1648,23 +1641,6 @@ class ServerRequest implements ServerRequestInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Read data from php://input, mocked in tests.
|
|
|
- *
|
|
|
- * @return string contents of php://input
|
|
|
- */
|
|
|
- protected function _readInput(): string
|
|
|
- {
|
|
|
- if (empty($this->_input)) {
|
|
|
- $fh = fopen('php://input', 'rb');
|
|
|
- $content = stream_get_contents($fh);
|
|
|
- fclose($fh);
|
|
|
- $this->_input = $content;
|
|
|
- }
|
|
|
-
|
|
|
- return $this->_input;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* Update the request with a new request data element.
|
|
|
*
|
|
|
* Returns an updated request object. This method returns
|