httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@organic.com>
Subject Re: Update mod negotiation to handle multiple languages
Date Fri, 25 Oct 1996 23:09:16 GMT

I also +1 this.  The changes make sense to me, and I trust Paul's familiarity
with the negotiation code.

	Brian

On Tue, 22 Oct 1996, Paul Sutton wrote:
> I recently noticed that Apache did not support multiple languages per
> resource. I sent a patch yesterday to update the core and mod_mime to
> handle multiple languages. This patch implements multiple languages per
> variant in mod_negotiation. This is required for HTTP/1.1 compliance.
> 
> This patch requires the multiple languages support in the Apache
> core. It should be applied to mod_negotiation.c _after_ applying the
> patch posted earlier today to fix some bugs in transparent content
> negotiation.
> 
> This patch:
> 
> * Allows multiple comma separated languages on the Content-Language:
>   header in a type-map file
> 
> * ... or gets the languages of a variant from mod_mime
> 
> * Updates the function which sets the language quality factor for
>   each variant to select the best (highest q) match from the tags
>   of the variant, using the algorythm in HTTP/1.1 14.4
> 
> * If the new (HTTP/1.1) language negotiation results in a tie between
>   variants, falls back onto the Apache 1.1 language negotiation
>   algorythm, using _just_ the first language of the variant
> 
> * Updates the 406 text and Alternates header to list multiple languages
>   if necessary
> 
> At several places in the code, it was necessary to convert an array
> consisting of char* pointers to strings into a single delimited
> string.  I've created a function to do this, merge_string_array(),
> which might be a useful API function.

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS


Mime
View raw message