httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@p6m7g8.com>
Subject [PATCH] add our version to string to httpd banner
Date Sun, 10 Jul 2005 22:30:50 GMT
Before:
Server: Apache/2.0.54 (Unix) DAV/2 mod_perl/2.0.2-dev Perl/5.8.7

After:
Server: Apache/2.0.54 (Unix) DAV/2 mod_apreq/2.1.2-dev 
mod_perl/2.0.2-dev Perl/5.8.7


pgollucci@smgellar /usr/local/dev/repos/ASF/httpd/apreq/trunk> svn diff 
Index: module/apache/command.c
===================================================================
--- module/apache/command.c     (revision 210049)
+++ module/apache/command.c     (working copy)
@@ -18,6 +18,7 @@

  #include "apreq_util.h"
  #include "apreq_module_apache.h"
+#include "apreq_version.h"

  #include "httpd.h"
  #include "http_log.h"
@@ -152,6 +153,7 @@
      apr_initialize();
      apr_pool_create(&p, NULL);
      apreq_initialize(p);
+    ap_add_version_component(p, apr_psprintf(p, "mod_apreq/%s", 
APREQ_VERSION_STRING));
      ap_register_cleanup(sp, p, apreq_cleanup, apreq_cleanup);
  }

Index: module/apache2/filter.c
===================================================================
--- module/apache2/filter.c     (revision 210049)
+++ module/apache2/filter.c     (working copy)
@@ -29,6 +29,7 @@
  #include "apreq_private_apache2.h"
  #include "apreq_error.h"
  #include "apreq_util.h"
+#include "apreq_version.h"

  static void *apreq_create_dir_config(apr_pool_t *p, char *d)
  {
@@ -423,6 +424,8 @@
  {
      apr_status_t status;

+    ap_add_version_component(p, apr_psprintf(p, "mod_apreq/%s", 
APREQ_VERSION_STRING));
+
      status = apreq_post_initialize(p);
      if (status != APR_SUCCESS) {
          ap_log_error(APLOG_MARK, APLOG_STARTUP|APLOG_ERR, status, 
base_server,

-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/resume.shtml
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


Mime
View raw message