mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Fixing issue where content types wouldn't be detected as once parseExtensions() is enabled the extension will always
default to html.
This commit is contained in:
parent
7fc5e8f810
commit
aca8cc8b77
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class RequestHandlerComponent extends Component {
|
||||||
if (isset($this->request->params['url']['ext'])) {
|
if (isset($this->request->params['url']['ext'])) {
|
||||||
$this->ext = $this->request->params['url']['ext'];
|
$this->ext = $this->request->params['url']['ext'];
|
||||||
}
|
}
|
||||||
if (empty($this->ext)) {
|
if (empty($this->ext) || $this->ext == 'html') {
|
||||||
$accepts = $this->request->accepts();
|
$accepts = $this->request->accepts();
|
||||||
$extensions = Router::extensions();
|
$extensions = Router::extensions();
|
||||||
if (count($accepts) == 1) {
|
if (count($accepts) == 1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue