[PATCH] Squid host rewrite for intercepted https requests

From: Alexander Komyagin <komyagin_at_altell.ru>
Date: Thu, 07 Jun 2012 20:02:53 +0400

Hi! I've found that Squid (as of 3.2.0.16) is still overwriting clients
requests to HTTP if they are intercepted:

src/client_side.cc:prepareTransparentURL():

snprintf(http->uri, url_sz, "http://%s%s", /*conn->port->protocol,*/
host, url);

When I want to intercept https traffic this one really breaks the things
down. I have not deepened into the details, but it seems that everything
works fine (simultaneous http/https) when I use conn->port->protocol and
force protocol to http if it is NULL.

Patch is attached.

-- 
Best wishes,
Alexander Komyagin

Received on Thu Jun 07 2012 - 16:04:27 MDT

This archive was generated by hypermail 2.2.0 : Fri Jun 08 2012 - 12:00:10 MDT