DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=11035>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=11035
basant.kukreja@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|bugs@httpd.apache.org |basant.kukreja@sun.com
Status|NEW |ASSIGNED
------- Additional Comments From basant.kukreja@sun.com 2007-02-09 15:38 -------
Created an attachment (id=19565)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=19565&action=view)
PatchAvailable
If defaultLanguage is defined and cgi/module try to set the Content-Language
header, apache merge the various content languages. However before this fix,
apache doesn't avoid duplicate content languages.
In this fix we create a hash of existing languages (in Content-Language)
header. Before adding a new language in Content-Length, we verify if the
language doesn't exist before.
There is a overhead of creating a hash however it only happens if module/cgi
set content-language header and DefaultLanguage is defined.
The patch has been tested with following perl and php scripts:
#!/usr/bin/perl
print "Content-type: text/plain\n";
print "Content-Language: en, fr, sp\n\n";
print "mod_perl 2.0 rocks!\n";
#!/usr/bin/perl
print "Content-type: text/plain\n";
print "Content-Language: fr, sp, en \n\n";
print "mod_perl 2.0 rocks!\n";
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
print "mod_perl 2.0 rocks!\n";
#!/usr/bin/php
<?
print "Content-type: text/plain\n";
print "Content-Language: en, fr, sp\n\n";
print "test.php cgi script!\n";
?>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
|