kraih/mojo — Issue #237: Research and stabilize respond_to semantics
Author: kraih
Created: 2011-12-09 20:31:37+00:00
State: open

http://mojolicio.us/perldoc/Mojolicious/Controller#respond_to

This method is still marked as EXPERIMENTAL because we've not yet decided what's the best way to handle the Accept header for content negotiation.

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

Usually we would just go with spec compliance, but many browsers such as Chrome 11 are notorious for not knowing what exactly they want and just give xml a higher quality value than html.

https://bugs.webkit.org/show_bug.cgi?id=27267

Therefore we currently ignore all unspecific Accept headers with more than one MIME type.