httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@devsys.jaguNET.com>
Subject Re: [PATCH] Fix ServerSignature to work as documented.
Date Wed, 28 Apr 1999 13:52:32 GMT
This is reversed, no?

Tony Finch wrote:
> 
> 
> That reminds me -- ap_psignature still doesn't use ap_get_server_version().
> With any luck the patch below will apply cleanly :-)
> 
> 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);
>  }
> 


-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message