From: Stefan Eissing Date: Wed, 28 Jun 2023 10:37:40 +0000 (+0200) Subject: tests/http: Add mod_h2 directive `H2ProxyRequests` X-Git-Tag: curl-8_2_0~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cae12480fc7bef73b612f45b09faf62c780d8975;p=thirdparty%2Fcurl.git 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 --- 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}', ])