mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
Accept default header
This commit is contained in:
@@ -39,7 +39,7 @@ class ContentNegotiationSubscriber implements EventSubscriberInterface
|
||||
public function onKernelRequest(GetResponseEvent $event)
|
||||
{
|
||||
$priorities = array('*/*');
|
||||
$format = $this->app['format.negociator']->getBest($event->getRequest()->headers->get('accept') ,$priorities);
|
||||
$format = $this->app['format.negociator']->getBest($event->getRequest()->headers->get('accept', '*/*'), $priorities);
|
||||
|
||||
if (null === $format) {
|
||||
$this->app->abort(406, 'Not acceptable');
|
||||
|
Reference in New Issue
Block a user