httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.@apache.org
Subject cvs commit: httpd-2.0/modules/mappers mod_negotiation.c
Date Sun, 04 May 2003 23:40:20 GMT
nd          2003/05/04 16:40:20

  Modified:    modules/mappers mod_negotiation.c
  Log:
  make sure, the preferred language gets its chance, even when it's not
  listed in browser's accept-language list.
  
  Revision  Changes    Path
  1.115     +10 -1     httpd-2.0/modules/mappers/mod_negotiation.c
  
  Index: mod_negotiation.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/mappers/mod_negotiation.c,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- mod_negotiation.c	10 Mar 2003 23:36:18 -0000	1.114
  +++ mod_negotiation.c	4 May 2003 23:40:20 -0000	1.115
  @@ -2379,7 +2379,16 @@
                * variant.
                */
               set_accept_quality(neg, variant);
  -            set_language_quality(neg, variant);
  +            /* accept the preferred language, even when it's not listed within
  +             * the Accept-Language header
  +             */
  +            if (preferred_language) {
  +                variant->lang_quality = 1.0f;
  +                variant->definite = 1;
  +            }
  +            else {
  +                set_language_quality(neg, variant);
  +            }
               set_encoding_quality(neg, variant);
               set_charset_quality(neg, variant);
   
  
  
  

Mime
View raw message