The goal is to make the base Request class more flexible.
For a use case see: https://github.com/FriendsOfSymfony/RestBundle/blob/master/Request/RequestListener.php
added support for setting a custom default format in Request::getRequ…
return "q" from splitHttpAcceptHeader() to enable more complex accept…
… header negotiations
added text/html to default format mapping
I'm fine with the first two commits, but not the last one as it changes the current behavior. Before the patch, the content-type would be 'text/html; charset=utf-8'. After the patch, it will only be 'text/html'.
nevermind, I've changed the behavior of the Response class to fix this problem there.