Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…mponent.
  • Loading branch information...
commit 62cb73398830aba684839060e60cd8fb732df767 1 parent a80cbc2
@sam-at-github sam-at-github authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.