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
This commit is contained in:
Stefan Eissing 2023-06-28 12:37:40 +02:00 committed by Jay Satiro
parent 9d6d47099b
commit cae12480fc

View File

@ -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}',
])