Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Dev

1.3 adds :80 to redirected URLs

 

 

Apache dev RSS feed   Index | Next | Previous | View Threaded


hartill at ooo

Mar 13, 1995, 10:33 AM

Post #1 of 2 (88 views)
Permalink
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


brian at wired

Mar 13, 1995, 6:40 PM

Post #2 of 2 (85 views)
Permalink
Re: 1.3 adds :80 to redirected URLs [In reply to]

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 [at] hotwired brian [at] hyperreal http://www.hotwired.com/Staff/brian/

Apache dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.