Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 21218 invoked by uid 6000); 24 Jan 1998 09:45:19 -0000 Received: (qmail 21212 invoked from network); 24 Jan 1998 09:45:17 -0000 Received: from eastwood.aldigital.algroup.co.uk (194.128.162.193) by taz.hyperreal.org with SMTP; 24 Jan 1998 09:45:17 -0000 Received: from freeby.ben.algroup.co.uk (freeby.ben.algroup.co.uk [193.133.15.6]) by eastwood.aldigital.algroup.co.uk (8.6.12/8.6.12) with ESMTP id JAA04192 for ; Sat, 24 Jan 1998 09:44:22 GMT Received: from algroup.co.uk (naughty.ben.algroup.co.uk [193.133.15.107]) by freeby.ben.algroup.co.uk (8.6.12/8.6.12) with ESMTP id JAA00648 for ; Sat, 24 Jan 1998 09:44:30 GMT Message-ID: <34C9B7D8.D8F59019@algroup.co.uk> Date: Sat, 24 Jan 1998 09:43:52 +0000 From: Ben Laurie Organization: A.L. Digital Ltd. X-Mailer: Mozilla 4.04 [en] (WinNT; I) MIME-Version: 1.0 To: new-httpd@apache.org Subject: Re: [patch] correctly redirect URLs based on connection information. References: <19980123162048.38954@texas.net> <19980123165510.00677@texas.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org 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