httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Laurie <...@algroup.co.uk>
Subject Re: [patch] correctly redirect URLs based on connection information.
Date Sat, 24 Jan 1998 09:43:52 GMT
Michael Douglass wrote:
> 
> On Fri, Jan 23, 1998 at 04:20:48PM -0600, Michael Douglass said:
> 
> > !     char *protocol = "http";
> > !
> > ! #ifdef APACHE_SSL
> > !     protocol = pstrcpy(p, http_method(r));
> > ! #endif
> 
> Doh!  And that should actually be:
> 
> protocol = http_method(r);
> 
> Why am I strcpying it?  Duh... :)

Even better, though, is to define http_method(r) to be "http" for
ordinary Apache, then you don't need any conditionals in the code.

Cheers,

Ben.

-- 
Ben Laurie            |Phone: +44 (181) 735 0686|Apache Group member
Freelance Consultant  |Fax:   +44 (181) 735 0689|http://www.apache.org
and Technical Director|Email: ben@algroup.co.uk |Apache-SSL author
A.L. Digital Ltd,     |http://www.algroup.co.uk/Apache-SSL
London, England.      |"Apache: TDG" http://www.ora.com/catalog/apache

Mime
View raw message