Browse files

One liner. Dont call function parseAccept() twice in RequestHandlerCo…

…mponent.
  • Loading branch information...
1 parent a80cbc2 commit 62cb73398830aba684839060e60cd8fb732df767 @sam-at-github sam-at-github committed Feb 21, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Controller/Component/RequestHandlerComponent.php
View
2 lib/Cake/Controller/Component/RequestHandlerComponent.php
@@ -159,7 +159,7 @@ protected function _setExtension() {
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;

0 comments on commit 62cb733

Please sign in to comment.