]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/http: Add mod_h2 directive `H2ProxyRequests`
authorStefan Eissing <stefan@eissing.org>
Wed, 28 Jun 2023 10:37:40 +0000 (12:37 +0200)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 28 Jun 2023 19:37:10 +0000 (15:37 -0400)
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

index 962addfc469c1b11a30fda5db6455611cb6f1689..4db1845bb4ccc3ac4e15c7fe5d67d3df3a00fd1e 100644 (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}',
             ])