Skip to content

Commit

Permalink
Remove check for non existent config.
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Sep 18, 2014
1 parent 4bff89e commit 2e9f309
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Filter/AssetFilter.php
Expand Up @@ -105,7 +105,7 @@ protected function _getAssetFile($url) {
*/
protected function _deliverAsset(Request $request, Response $response, $assetFile, $ext) {
ob_start();
$compressionEnabled = Configure::read('Asset.compress') && $response->compress();
$compressionEnabled = $response->compress();
if ($response->type($ext) === $ext) {
$contentType = 'application/octet-stream';
$agent = $request->env('HTTP_USER_AGENT');
Expand Down

0 comments on commit 2e9f309

Please sign in to comment.