NancyFx/Nancy — pull request #829 by thefringeninja (2012-11-18 17:27:12+00:00)
Title: Accept extensions

Seeing this exception in new relic:
inputString not in correct Type/SubType format Parameter name: application/xhtml+xml; profile="http://www.wapforum. org/xhtml"

Some mobile browser user agent must be sending this accept header. According to the spec,
Accept = "Accept" ":"
#( media-range [ accept-params ] )
media-range = ( "*/*"
| ( type "/" "*" )
| ( type "/" subtype )
) *( ";" parameter )
accept-params = ";" "q" "=" qvalue *( accept-extension )
accept-extension = ";" token [ "=" ( token | quoted-string ) ]

Will also have to handle Accept: application/xhtml+xml; q=1; profile="http://www.wapforum. org/xhtml" so don't merge this in just yet :)