From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 13 Dec 2020 08:14:41 +0000 (+0100)
Subject: Explain why the "Set Header = Host: whatever.example.org" test is expected to fail
X-Git-Tag: v_3_0_30~270^2~14
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/@default-cgi@/man-page/faq/@default-cgi@send-stylesheet?a=commitdiff_plain;h=890920e6c65aadc9363ae1429c166c71e9b0f053;p=privoxy.git

Explain why the "Set Header = Host: whatever.example.org" test is expected to fail

... when using a CGI prefix that starts with "https://".
---

diff --git a/regression-tests.action b/regression-tests.action
index f28da186..7409e6b1 100644
--- a/regression-tests.action
+++ b/regression-tests.action
@@ -629,6 +629,15 @@ TAG:^connection-sharing enabled$
 TAG:^No Host header$
 
 {}
+# XXX: This test is expected to fail when using "https://p.p/"
+#      as CGI prefix with https inspection enabled but can't
+#      yet be automatically skipped. The reason for the test
+#      failure is that Privoxy-Regression-Test only modifies
+#      the Host header for the CONNECT request, not for the
+#      actual request that follows. Changing that would not
+#      fix the test though as a modified Host header in the
+#      actual request would result in Privoxy attempting to
+#      connect to it.
 # Set Header    = Host: whatever.example.org
 # Expect Header = NO CHANGE
 TAG:^Host header other than the target host$