Hi,
A while back we fixed an issue in our fork of Openrasta 2.0 that dealt with the following:
- If a request came in for an unknown content-type using an invalid Accept header (e.g - "Accept: *.*, *" - an actual one we were receiving incidentally!!)
-
Then a System.Format exception was being thrown.
Digging down we found out that this was to do with using .NETs new MediaType(), which in turn tries to parse what's been provided in the accept header.
To fix this, we pulled the method our of the Select loop, and wrapped the new MediaType in a try catch, allowing it to return the default media Type, if an error was caught.
The issue is, we really need this to be fixed in the main 2.1 branch if possible. Can I send a Pull Request to have it pulled into OR 2.1, we want to try and keep our fork as close as possible to the main branch going forwards.
Thanks,
Greg Sochanik