Browse Source

One liner. Dont call function parseAccept() twice in RequestHandlerComponent.

Sam 12 years ago
parent
commit
62cb733988
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

@@ -159,7 +159,7 @@ class RequestHandlerComponent extends Component {
 			return;
 		}
 
-		$accepts = $this->response->mapType($this->request->parseAccept());
+		$accepts = $this->response->mapType($accept);
 		$preferedTypes = current($accepts);
 		if (array_intersect($preferedTypes, array('html', 'xhtml'))) {
 			return null;