Bug 21251

Summary: Language negotiation with country subtags
Product: Apache httpd-2 Reporter: Christof Rothen <christof>
Component: mod_negotiationAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: CLOSED INVALID    
Severity: normal Keywords: FAQ
Priority: P3    
Version: 2.0.40   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Christof Rothen 2003-07-01 23:21:42 UTC
It seems that there is a bug in the negotiation module for language negotiation.

The language negotiation only works if there are no subtag specified by the 
browser. As soon as a country codes is add as subtag the language can no longer 
be negotiated.

If the browser is asking for de-ch,en-us;q=0.5 and the server contains a de and 
en version of the document, the de should be hand out. But in such a situation 
the document is negotiated from the LanguagePriority setting of the server.

Regards, Chris
Comment 1 André Malo 2003-07-01 23:42:36 UTC
*sigh* I'm wondering, why this is so popular at the moment.

However, the behaviour is correct, since the standard defines it that way.

Thanks for using Apache.