codeinchaos/restful-zend-framework — pull request #7 by Yefb (2012-03-14 16:12:39+00:00)
Title: Default format when no specified

There's an issue: When the user that make the calls to the REST server doesn't specify any format, the system must to take any as default. This triggers the error that the MIME is invalid:

1. If the user doesn't have the HTTP PECL extension installed, the MIME returned is empty.
2. If the user has the HTTP PECT extension, the MIME returned is '*/*'

The user is free to specify or not the format.
My change is to set 'application/xml' the default MimeType when there's format specified.