From 6eba83b325dc66e3bd1198633d48f20d33f2693c Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 25 Apr 2009 16:11:16 +1200 Subject: [PATCH] Fix syntax typos imported from 3.1. --- src/errorpage.cc | 2 +- src/url.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2