Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[HttpFoundation] Fix support of custom mime types with parameters #18255
When using mime types with parameters,
$request = new Request(); $request->setFormat('custom', 'app/foo;param=bar'); $request->getFormat('app/foo;param=bar'); // will return null as the parameters are removed
So my proposal is to search the format corresponding to a mime type with its raw value or with the its parameters removed.