Skip to content

Commit

Permalink
fix: abort audio middleware for non post requests
Browse files Browse the repository at this point in the history
  • Loading branch information
maikschneider committed Feb 26, 2024
1 parent 47b5faa commit 7dd0cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Middleware/Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function process(
): ResponseInterface {
/** @var PageArguments $pageArguments */
$pageArguments = $request->getAttribute('routing', null);
if ($pageArguments->getPageType() !== '3414') {
if ($pageArguments->getPageType() !== '3414' || $request->getMethod() !== 'POST') {
// pipe request to other middleware handlers
return $handler->handle($request);
}
Expand Down

0 comments on commit 7dd0cd3

Please sign in to comment.