From cae12480fc7bef73b612f45b09faf62c780d8975 Mon Sep 17 00:00:00 2001 From: Stefan Eissing Date: Wed, 28 Jun 2023 12:37:40 +0200 Subject: [PATCH] tests/http: Add mod_h2 directive `H2ProxyRequests` master of mod_h2 now requires H2ProxyRequests directives for forward proxying with HTTP/2 to work. Ref: https://github.com/icing/mod_h2/commit/3897a7086 Closes https://github.com/curl/curl/pull/11392 --- tests/http/testenv/httpd.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/http/testenv/httpd.py b/tests/http/testenv/httpd.py index 962addfc46..4db1845bb4 100644 --- a/tests/http/testenv/httpd.py +++ b/tests/http/testenv/httpd.py @@ -303,6 +303,7 @@ class Httpd: f' ServerName {proxy_domain}', f' Protocols h2c http/1.1', f' ProxyRequests On', + f' H2ProxyRequests On', f' ProxyVia On', f' AllowCONNECT {self.env.http_port} {self.env.https_port}', ]) @@ -319,6 +320,7 @@ class Httpd: f' SSLCertificateFile {proxy_creds.cert_file}', f' SSLCertificateKeyFile {proxy_creds.pkey_file}', f' ProxyRequests On', + f' H2ProxyRequests On', f' ProxyVia On', f' AllowCONNECT {self.env.http_port} {self.env.https_port}', ])