xp-framework/xp-framework — pull request #163 by weiher (2012-05-22 14:50:48+00:00)
Title: Add parsing by quality for some http-headers as defined in HTTP/1.1 RFC 2616

Some Browsers or JS-Libs like firefox or jQuery do send full qualified headers as defined in RFC 2616.

This will throw an exception under some circumstances, for example:

Exception scriptlet.HttpScriptletException (406:The accept type is not supported: application/json, */*; q=0.01, application/json)

This work-around will return just the one entry, with the highest quality, as expected by the XP-Framework.