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:
mark_story 2011-05-02 22:26:58 -04:00
parent 7fc5e8f810
commit aca8cc8b77

View file

@ -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) {