Re: URIs for accelerators

From: Adrian Chadd <adrian@dont-contact.us>
Date: Fri, 25 Jan 2008 11:41:22 +0900

On Wed, Jan 23, 2008, Mark Nottingham wrote:
> That's kind of what I was thinking, but was balking at the extra
> logic. If it's already hanging around, all the better.

I just replied to the bug. This code may do the right thing:

            if (vport)
                snprintf(http->uri, url_sz, "%s://%s:%d%s",
                    conn->port->protocol, t, port, url);
            else if (port != urlDefaultPort(conn->port->protocol))
                snprintf(http->uri, url_sz, "%s://%s:%d%s",
                    conn->port->protocol, t, port, url);
            else
                snprintf(http->uri, url_sz, "%s://%s%s",
                    conn->port->protocol, t, url);

See if that works?

Adrian

-- 
- Xenion - http://www.xenion.com.au/ - VPS Hosting - Commercial Squid Support -
- $25/pm entry-level VPSes w/ capped bandwidth charges available in WA -
Received on Thu Jan 24 2008 - 19:30:50 MST

This archive was generated by hypermail pre-2.1.9 : Wed Jan 30 2008 - 12:00:09 MST