httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Finch <...@dotat.at>
Subject Re: [PATCH] Fix ServerSignature to work as documented.
Date Wed, 28 Apr 1999 13:17:17 GMT
Martin Kraemer <Martin.Kraemer@mch.sni.de> wrote:
>Raymond S Brand wrote:
>>
>> The following patch fixes the ServerSignature directive to work as
>> documented.
>
>Thanks a lot. Committed.

That reminds me -- ap_psignature still doesn't use ap_get_server_version().
With any luck the patch below will apply cleanly :-)

Tony.
-- 
f.a.n.finch   dot@dotat.at   fanf@demon.net
Arthur: "Oh, that sounds better, have you worked out the controls?"
Ford:   "No, we just stopped playing with them."


Index: src/www/apache_1-3_fanf/src/main/http_core.c
diff -u src/www/apache_1-3_fanf/src/main/http_core.c:1.25.2.1 src/www/apache_1-3_fanf/src/main/http_core.c:1.25
--- src/www/apache_1-3_fanf/src/main/http_core.c:1.25.2.1	Fri Mar 26 14:14:54 1999
+++ src/www/apache_1-3_fanf/src/main/http_core.c	Fri Mar 26 13:25:45 1999
@@ -2513,13 +2513,13 @@
     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>", ap_get_server_version(),
+	return ap_pstrcat(r->pool, prefix, "<ADDRESS>" SERVER_BASEVERSION
 			  " 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>", ap_get_server_version(),
+    return ap_pstrcat(r->pool, prefix, "<ADDRESS>" SERVER_BASEVERSION
 		      " Server at ", ap_get_server_name(r), " Port ", sport,
 		      "</ADDRESS>\n", NULL);
 }

Mime
View raw message