From aca8cc8b771cef5ccc3cb2666f9123291fbdcfa6 Mon Sep 17 00:00:00 2001 From: mark_story Date: Mon, 2 May 2011 22:26:58 -0400 Subject: [PATCH] Fixing issue where content types wouldn't be detected as once parseExtensions() is enabled the extension will always default to html. --- lib/Cake/Controller/Component/RequestHandlerComponent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Controller/Component/RequestHandlerComponent.php b/lib/Cake/Controller/Component/RequestHandlerComponent.php index 17fe7757c..b4db62b1e 100644 --- a/lib/Cake/Controller/Component/RequestHandlerComponent.php +++ b/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) {