Browse Source

Remove check for non-existent param.

Request action feature has been removed.
ADmad 6 years ago
parent
commit
bfea79aabd
1 changed files with 2 additions and 3 deletions
  1. 2 3
      src/Controller/Component/RequestHandlerComponent.php

+ 2 - 3
src/Controller/Component/RequestHandlerComponent.php

@@ -494,9 +494,8 @@ class RequestHandlerComponent extends Component
             return false;
         }
 
-        if (!$request->getParam('requested')) {
-            $response = $response->withType($cType);
-        }
+        $response = $response->withType($cType);
+
         if (!empty($options['charset'])) {
             $response = $response->withCharset($options['charset']);
         }