Unverified Commit 2b331d00 authored by larowlan's avatar larowlan

Issue #2854543 by Wim Leers, polynya, dawehner, mpdonadio, gabesullice,...

Issue #2854543 by Wim Leers, polynya, dawehner, mpdonadio, gabesullice, larowlan, klausi: NegotiationMiddleware calls $request->setRequestFormat('html') when there is no _format request parameter, but shouldn't
parent 41dfad38
......@@ -85,7 +85,7 @@ protected static function getDefaultFormat(RouteCollection $collection) {
$route_formats = !$route->hasRequirement('_format')
? ['html']
: explode('|', $route->getRequirement('_format'));
return array_merge($carry,$route_formats);
return array_merge($carry, $route_formats);
}, []);
$formats = array_unique(array_filter($all_formats));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment