jwoolley 2003/10/15 17:30:38
Modified: perl-framework/c-modules/echo_post_chunk
mod_echo_post_chunk.c
Log:
backward compat
Revision Changes Path
1.3 +4 -0
httpd-test/perl-framework/c-modules/echo_post_chunk/mod_echo_post_chunk.c
Index: mod_echo_post_chunk.c
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/c-modules/echo_post_chunk/mod_echo_post_chunk.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -u -r1.2 -r1.3
--- mod_echo_post_chunk.c 15 Oct 2003 22:34:11 -0000 1.2
+++ mod_echo_post_chunk.c 16 Oct 2003 00:30:38 -0000 1.3
@@ -56,7 +56,11 @@
total += nrd;
}
+#ifdef APACHE1
+ trailer_header = ap_table_get(r->headers_in, "X-Chunk-Trailer");
+#else
trailer_header = apr_table_get(r->headers_in, "X-Chunk-Trailer");
+#endif
if (!trailer_header) {
trailer_header = "No chunked trailer available!";
}