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
41dfad388c
commit
2b331d00bf
|
@ -85,7 +85,7 @@ class RequestFormatRouteFilter implements FilterInterface {
|
||||||
$route_formats = !$route->hasRequirement('_format')
|
$route_formats = !$route->hasRequirement('_format')
|
||||||
? ['html']
|
? ['html']
|
||||||
: explode('|', $route->getRequirement('_format'));
|
: explode('|', $route->getRequirement('_format'));
|
||||||
return array_merge($carry,$route_formats);
|
return array_merge($carry, $route_formats);
|
||||||
}, []);
|
}, []);
|
||||||
$formats = array_unique(array_filter($all_formats));
|
$formats = array_unique(array_filter($all_formats));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue