Browse Source

Fixing issue where content types wouldn't be detected as once parseExtensions() is enabled the extension will always
default to html.

mark_story 15 years ago
parent
commit
aca8cc8b77
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Controller/Component/RequestHandlerComponent.php

+ 1 - 1
lib/Cake/Controller/Component/RequestHandlerComponent.php

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