Author: joes
Date: Fri Nov 19 19:07:31 2004
New Revision: 105924
Modified:
httpd/apreq/trunk/CHANGES
httpd/apreq/trunk/env/mod_apreq.c
Log:
Apply Bojan Smojver's patch:
Bake cookies with err_headers_out so they are
sent on non-2xx server responses (ie. a 304 redirect).
Also ensure that headers are copied with apr_table_add
instead of apr_table_addn. Since apreq_cookie_bake()
allocates from the stack, the Set-Cookie headers would
occasionally get mangled without this patch.
Modified: httpd/apreq/trunk/CHANGES
==============================================================================
--- httpd/apreq/trunk/CHANGES (original)
+++ httpd/apreq/trunk/CHANGES Fri Nov 19 19:07:31 2004
@@ -5,6 +5,14 @@
@section v2_05 Changes with libapreq2-2.05
+- C API [Bojan Smojver]
+ Bake cookies with err_headers_out so they are
+ sent on non-2xx server responses (ie. a 304 redirect).
+ Also ensure that headers are copied with apr_table_add
+ instead of apr_table_addn. Since apreq_cookie_bake()
+ allocates from the stack, the Set-Cookie headers would
+ occasionally get mangled without this patch.
+
- C API [joes]
Add apreq_register_parser(), which allows users to add
their own parsers to apreq_parser()'s recognized MIME types.
Modified: httpd/apreq/trunk/env/mod_apreq.c
==============================================================================
--- httpd/apreq/trunk/env/mod_apreq.c (original)
+++ httpd/apreq/trunk/env/mod_apreq.c Fri Nov 19 19:07:31 2004
@@ -169,7 +169,7 @@
#define APREQ_MODULE_NAME "APACHE2"
-#define APREQ_MODULE_MAGIC_NUMBER 20040809
+#define APREQ_MODULE_MAGIC_NUMBER 20041119
static void apache2_log(const char *file, int line, int level,
apr_status_t status, void *env, const char *fmt,
@@ -208,7 +208,7 @@
char *value)
{
dR;
- apr_table_addn(r->headers_out, name, value);
+ apr_table_add(r->err_headers_out, name, value);
return APR_SUCCESS;
}