You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rob Hartill <ha...@ooo.lanl.gov> on 1995/03/13 18:33:50 UTC
1.3 adds :80 to redirected URLs
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/
We need to check for the default port and not add it if it
is missing, because clients often treat URLs with ":80" and without,
differently - so you end up caching both.
rob h
Re: 1.3 adds :80 to redirected URLs
Posted by Brian Behlendorf <br...@wired.com>.
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/