httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <br...@wired.com>
Subject Re: 1.3 adds :80 to redirected URLs
Date Tue, 14 Mar 1995 01:40:52 GMT
On Mon, 13 Mar 1995, Rob Hartill wrote:
> Something else we need to fix..
> 
> If you ask for
>  
>   http://x.y.z/bleah
> 
> when you really meant   http://x.y.z/bleah/
> 
> The client is redirected to   http://x.y.z:80/bleah/

No problem:

taz [1540] diff util.c~ util.c
968c968,972
<     sprintf(d,"http://%s:%d%s",server_hostname,port,s);
---
>     if (port == 80) {
>       sprintf(d,"http://%s%s",server_hostname,s);
>     } else {
>       sprintf(d,"http://%s:%d%s",server_hostname,port,s);
>     }      

Man, I think I'm getting the hang of this C thing.  :)

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@hotwired.com  brian@hyperreal.com  http://www.hotwired.com/Staff/brian/


Mime
View raw message