 mod_webapp.c.13.diff                                                               F    ~T~T   mBIN                ;F  Index: mod_webapp.c
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat-connectors/webapp/apache-1.3/mod_webapp.c,v
retrieving revision 1.31
diff -u -r1.31 mod_webapp.c
--- mod_webapp.c	17 Jan 2002 17:02:13 -0000	1.31
+++ mod_webapp.c	30 Jan 2002 17:47:45 -0000
@@ -68,6 +68,7 @@
 #include <http_protocol.h>
 #include <util_script.h>
 #include <wa.h>
+#include <wa_version.h>
 
 /* ************************************************************************* */
 /* GENERIC DECLARATIONS                                                      */
@@ -523,6 +524,11 @@
     return(OK);
 }
 
+static void wam_init_handler(server_rec *s, ap_pool *p)
+{
+    ap_add_version_component(WA_EXPOSED_VERSION);
+}
+
 /* List of all available Apache handlers */
 static const handler_rec wam_handlers[] = {
     {"webapp-handler", wam_invoke},
@@ -532,7 +538,7 @@
 /* Apache module declaration */
 module MODULE_VAR_EXPORT webapp_module = {
     STANDARD_MODULE_STUFF,
-    NULL,                               /* module initializer */
+    wam_init_handler,                   /* module initializer */
     NULL,                               /* per-directory config creator */
     NULL,                               /* dir config merger */
     NULL,                               /* server config creator */
                                                          