httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colm MacCarthaigh <c...@stdlib.net>
Subject Re: [PATCH] add User-Agent to dummy connection
Date Mon, 08 Aug 2005 17:19:39 GMT
On Mon, Aug 08, 2005 at 04:42:09PM +0100, Colm MacCarthaigh wrote:
> On Mon, Aug 08, 2005 at 11:29:59AM -0400, Brian Akins wrote:
> > maybe just make it static like:
> > 
> > static char *srequest = NULL;
> 
> or;
> 
> const char *srequest = "GET / HTTP/1.0\r\n"
>                        "User-Agent: " AP_SERVER_BASEVERSION
>                        " (dummy connection)\r\n\r\n";

Actually, I definitely think this is a better idea, since the pool is
destroyed at the end of the function, taking any guarantees about the
string contents with it.

-- 
Colm MacCárthaigh                        Public Key: colm+pgp@stdlib.net

Mime
View raw message