From: Amos Jeffries Date: Sat, 25 Apr 2009 04:11:16 +0000 (+1200) Subject: Fix syntax typos imported from 3.1. X-Git-Tag: SQUID_3_0_STABLE15~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6eba83b325dc66e3bd1198633d48f20d33f2693c;p=thirdparty%2Fsquid.git Fix syntax typos imported from 3.1. --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 57e75854b1..315fa08275 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -690,7 +690,7 @@ errorConvert(char token, ErrorState * err) case 'I': if (r && r->hier.host[0] != '\0') // if non-empty string mb.Printf("%s", r->hier.host); - } else + else p = "[unknown]"; break; diff --git a/src/url.cc b/src/url.cc index 1ed195fd3b..647d03b017 100644 --- a/src/url.cc +++ b/src/url.cc @@ -449,7 +449,7 @@ urlCanonicalFakeHttps(const HttpRequest * request) // method CONNECT and port HTTPS if(request->method == METHOD_CONNECT && request->port == 443) { - snprintf(buf, MAX_URL, "https://%s/*", request->GetHost()); + snprintf(buf, MAX_URL, "https://%s/*", request->host); return buf; }