summaryrefslogtreecommitdiff
path: root/test/modules/http2/htdocs
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-09-20 12:40:58 +0000
committerStefan Eissing <icing@apache.org>2022-09-20 12:40:58 +0000
commit4ef081eddf3b243bb7f7fbdbf4750b451c052840 (patch)
tree577e2f6f981d7fab7994635c3af493d36999a75b /test/modules/http2/htdocs
parentdb3bb198612fbd43438db0232d9b635eae9d3d63 (diff)
downloadhttpd-4ef081eddf3b243bb7f7fbdbf4750b451c052840.tar.gz
*) mod_proxy_http2: use only the ':authority' header to forward 'Host'
information to a backend. Deduce ':authority' from what the client sent when 'ProxyPreserveHost' is on. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1904164 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/modules/http2/htdocs')
-rw-r--r--test/modules/http2/htdocs/cgi/hello.py1
-rw-r--r--test/modules/http2/htdocs/cgi/mnot164.py9
2 files changed, 7 insertions, 3 deletions
diff --git a/test/modules/http2/htdocs/cgi/hello.py b/test/modules/http2/htdocs/cgi/hello.py
index 9fb2eb689d..f9aed3f1a4 100644
--- a/test/modules/http2/htdocs/cgi/hello.py
+++ b/test/modules/http2/htdocs/cgi/hello.py
@@ -6,6 +6,7 @@ print("Content-Type: application/json")
print()
print("{")
print(" \"https\" : \"%s\"," % (os.getenv('HTTPS', '')))
+print(" \"x_host\" : \"%s\"," % (os.getenv('X_HOST', '')))
print(" \"host\" : \"%s\"," % (os.getenv('SERVER_NAME', '')))
print(" \"port\" : \"%s\"," % (os.getenv('SERVER_PORT', '')))
print(" \"protocol\" : \"%s\"," % (os.getenv('SERVER_PROTOCOL', '')))
diff --git a/test/modules/http2/htdocs/cgi/mnot164.py b/test/modules/http2/htdocs/cgi/mnot164.py
index 949b0f195b..0e5d107246 100644
--- a/test/modules/http2/htdocs/cgi/mnot164.py
+++ b/test/modules/http2/htdocs/cgi/mnot164.py
@@ -12,10 +12,13 @@ try:
except KeyError:
text="a"
count=77784
-
-
+
+count = int(count)
+
print("Status: 200 OK")
print("Content-Type: text/html")
print()
-sys.stdout.write(text*int(count))
+sys.stdout.flush()
+for _ in range(count):
+ sys.stdout.write(text)