Another issue i've discovered about accepted languages is following
In the com.noelios.restlet.Engine class in getPreferredVariant(ClientInfo, 
List<Variant>, Language) the quality of ALL language(*) is 0.004, but for 
default language of application quality is 0.001.

As i understood this will cause system to get wrong variant.Because if i have 
variants with language equals to default they won't be choosen.

For example i have 3 variants exposed by resource. All variants have same media 
type but different languages: en, es, pt.Default application language is en

If in my browser i have fr as preferences. So final list of preferences will be 
smth like: {fr;1.0,en;0.001,*;0.004}. And i expect that if fr is not in list of 
languages the variant with en will be choosen as preffered variant. But in 
reality in takes 2nd variant from list (with es).

Could someone clarify this issue plz.

Reply via email to