httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <f...@demon.net>
Subject server signature and version strings
Date Wed, 24 Feb 1999 17:02:16 GMT
Is there any reason that ap_psignature uses SERVER_BASEVERSION instead
of ap_get_server_version?

Tony.
-- 
f.a.n.finch  dot@dotat.at  fanf@demon.net


--- http_core.c	Thu Feb  4 23:46:08 1999
+++ http_core.patched.c	Wed Feb 24 16:57:49 1999
@@ -2333,13 +2333,14 @@
     ap_snprintf(sport, sizeof sport, "%u", (unsigned) ap_get_server_port(r));
 
     if (conf->server_signature == srv_sig_withmail) {
-	return ap_pstrcat(r->pool, prefix, "<ADDRESS>" SERVER_BASEVERSION
+	return ap_pstrcat(r->pool, prefix, "<ADDRESS>",
+			  ap_get_server_version(),
 			  " Server at <A HREF=\"mailto:",
 			  r->server->server_admin, "\">",
 			  ap_get_server_name(r), "</A> Port ", sport,
 			  "</ADDRESS>\n", NULL);
     }
-    return ap_pstrcat(r->pool, prefix, "<ADDRESS>" SERVER_BASEVERSION
+    return ap_pstrcat(r->pool, prefix, "<ADDRESS>", ap_get_server_version(),
 		      " Server at ", ap_get_server_name(r), " Port ", sport,
 		      "</ADDRESS>\n", NULL);
 }

Mime
View raw message