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 -

Reply via email to