"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Controller/Component/RequestHandlerComponent.php" between
cakephp-4.0.1.tar.gz and cakephp-4.0.2.tar.gz

About: CakePHP is a rapid development framework for PHP applications. Source code.

RequestHandlerComponent.php  (cakephp-4.0.1):RequestHandlerComponent.php  (cakephp-4.0.2)
skipping to change at line 175 skipping to change at line 175
if (!$this->ext || in_array($this->ext, ['html', 'htm'], true)) { if (!$this->ext || in_array($this->ext, ['html', 'htm'], true)) {
$this->_setExtension($request, $response); $this->_setExtension($request, $response);
} }
$isAjax = $request->is('ajax'); $isAjax = $request->is('ajax');
$controller->setRequest($request->withAttribute('isAjax', $isAjax)); $controller->setRequest($request->withAttribute('isAjax', $isAjax));
if (!$this->ext && $isAjax) { if (!$this->ext && $isAjax) {
$this->ext = 'ajax'; $this->ext = 'ajax';
} }
if (!$request->is(['get', 'head', 'options']) && $request->getParsedBody
() === []) {
$input = $request->input();
if (!in_array($input, ['', '[]', '{}'], true)) {
deprecationWarning(
'Request input data parsing feature has been removed from Re
questHandler. ' .
'Use the BodyParserMiddleware in your Application class inst
ead.'
);
}
}
} }
/** /**
* Checks if the response can be considered different according to the reque st * Checks if the response can be considered different according to the reque st
* headers, and the caching response headers. If it was not modified, then t he * headers, and the caching response headers. If it was not modified, then t he
* render process is skipped. And the client will get a blank response with a * render process is skipped. And the client will get a blank response with a
* "304 Not Modified" header. * "304 Not Modified" header.
* *
* - If Router::extensions() is enabled, the layout and template type are * - If Router::extensions() is enabled, the layout and template type are
* switched based on the parsed extension or `Accept` header. For example, * switched based on the parsed extension or `Accept` header. For example,
 End of changes. 1 change blocks. 
13 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)