gregames 2002/10/30 13:33:45
Modified: specweb99/specweb99-2.0 mod_specweb99.c
Log:
A handler doesn't need to set the content length in 2.0, because the C-L
filter
will do it later anyway, perhaps more accurately.
That eliminates the need for the length parm in returnHTMLPageHead.
Revision Changes Path
1.15 +4 -5 httpd-test/specweb99/specweb99-2.0/mod_specweb99.c
Index: mod_specweb99.c
===================================================================
RCS file: /home/cvs/httpd-test/specweb99/specweb99-2.0/mod_specweb99.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- mod_specweb99.c 30 Oct 2002 19:36:09 -0000 1.14
+++ mod_specweb99.c 30 Oct 2002 21:33:45 -0000 1.15
@@ -184,7 +184,7 @@
return 0;
}
-static char *returnHTMLPageHead(request_rec *r, int len)
+static char *returnHTMLPageHead(request_rec *r)
{
char *bp_head;
@@ -195,7 +195,6 @@
REMOTE_NOLOOKUP, NULL), r->uri,
r->args ? r->args : "");
- ap_set_content_length(r, strlen(bp_head) + boilerplate_end_len + len);
r->content_type = "text/html";
return bp_head;
@@ -210,7 +209,7 @@
apr_bucket *b1, *b2, *b3;
apr_status_t rv;
- bp_head = returnHTMLPageHead(r, buflen);
+ bp_head = returnHTMLPageHead(r);
bb = apr_brigade_create(r->pool, c->bucket_alloc);
@@ -262,7 +261,7 @@
return;
}
- bp_head = returnHTMLPageHead(r, s.size);
+ bp_head = returnHTMLPageHead(r);
b1 = apr_bucket_transient_create(bp_head, strlen(bp_head),
c->bucket_alloc);