You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by mt...@apache.org on 2002/10/18 09:35:06 UTC
cvs commit: jakarta-tomcat-connectors/jk/native2/server/apache2 jk_service_apache2.c
mturk 2002/10/18 00:35:06
Modified: jk/native2/server/apache2 jk_service_apache2.c
Log:
Fix the bug 12699.
Use the table_add instead of table_set for multivalue headers.
Revision Changes Path
1.30 +7 -4 jakarta-tomcat-connectors/jk/native2/server/apache2/jk_service_apache2.c
Index: jk_service_apache2.c
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/jk/native2/server/apache2/jk_service_apache2.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- jk_service_apache2.c 27 Sep 2002 13:14:09 -0000 1.29
+++ jk_service_apache2.c 18 Oct 2002 07:35:06 -0000 1.30
@@ -163,9 +163,12 @@
ap_update_mtime(r, ap_parseHTTPdate(val));
ap_set_last_modified(r);
apr_table_set(r->headers_out, name, val);
- } else {
- /* apr_table_add(r->headers_out, name, val); */
- apr_table_set(r->headers_out, name, val);
+ } else {
+ /* All other headers may have multiple values like
+ * Set-Cookie, so use the table_add to allow that.
+ */
+ apr_table_add(r->headers_out, name, val);
+ /* apr_table_set(r->headers_out, name, val); */
}
}
#endif
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>