coar 97/04/11 15:57:39
Modified: src/modules/example mod_example.c
Log:
Argh! Code fragment for HEAD checking accidentally elided.
Revision Changes Path
1.2 +8 -0 apache/src/modules/example/mod_example.c
Index: mod_example.c
===================================================================
RCS file: /export/home/cvs/apache/src/modules/example/mod_example.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C3 -r1.1 -r1.2
*** mod_example.c 1997/04/11 22:12:34 1.1
--- mod_example.c 1997/04/11 22:57:38 1.2
***************
*** 364,369 ****
--- 364,377 ----
r->content_type = "text/html";
soft_timeout ("send example call trace", r);
send_http_header (r);
+ /*
+ * If we're only supposed to send header information (HEAD request),
we're
+ * already there.
+ */
+ if (r->header_only) {
+ kill_timeout (r);
+ return OK;
+ }
/*
* Now send our actual output. Since we tagged this as being