mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +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'])) {
|
||||
$this->ext = $this->request->params['url']['ext'];
|
||||
}
|
||||
if (empty($this->ext)) {
|
||||
if (empty($this->ext) || $this->ext == 'html') {
|
||||
$accepts = $this->request->accepts();
|
||||
$extensions = Router::extensions();
|
||||
if (count($accepts) == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue