httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Malo>
Subject [PATCH] mod_negotiation.c
Date Sat, 05 Oct 2002 19:24:11 GMT

[sent a similiar patch several weeks ago, but wasn't noticed, so I try
it again.. :)]

The attached patch sets the MIME-type, charset, content-language and
content-encoding of a negotiated type-map body. Thus you can hold
different types, languages etc. inside the same file, for example:

--------------8<---[ ]-----------------------
Content-language: de
Content-type: text/html; charset=ISO-8859-1
[german text/html document]

Content-language: de
Content-type: application/xhtml+xml; charset=UTF-8
[german application/xhtml+xml document; utf-8 encoded]

Content-language: en
Content-type: text/plain; charset=us-ascii
[english text/plain document]
--------------8<---[ ]-----------------------

The information will only be set if available, of course.

Technical Note: I'm not sure, whether copying the information there is
the right way (instead of assigning pointers), but I guess, you tell me,
if it's wrong ;-)

Since the distributed customized error documents are going to rely on
this header information, any feedback would be appreciated.

tvc!ifmm)%*|#Qfsm!A`#~tvc!jt)%*|(Ibdlfs(~  # What the hell is JAPH? ;
@_=split/\s\s+#/;$_=(join''=>map{chr(ord(  #             André Malo ;
$_)-1)}split//=>$_[0]).$_[1];s s.*s$_see;  # ;

View raw message