diff options
Diffstat (limited to 'test/modules/http2/test_004_post.py')
-rw-r--r-- | test/modules/http2/test_004_post.py | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/test/modules/http2/test_004_post.py b/test/modules/http2/test_004_post.py index 295f989b88..e7938f007b 100644 --- a/test/modules/http2/test_004_post.py +++ b/test/modules/http2/test_004_post.py @@ -18,14 +18,7 @@ class TestPost: @pytest.fixture(autouse=True, scope='class') def _class_scope(self, env): TestPost._local_dir = os.path.dirname(inspect.getfile(TestPost)) - conf = H2Conf(env, extras={ - f'cgi.{env.http_tld}': [ - f'<Directory {env.server_docs_dir}/cgi/xxx>', - ' RewriteEngine On', - ' RewriteRule .* /proxy/echo.py [QSA]', - '</Directory>', - ] - }) + conf = H2Conf(env) conf.add_vhost_cgi(proxy_self=True).install() assert env.apache_restart() == 0 @@ -190,6 +183,16 @@ class TestPost: def test_h2_004_41(self, env): # reproduce PR66597, double chunked encoding on redirects + conf = H2Conf(env, extras={ + f'cgi.{env.http_tld}': [ + f'<Directory {env.server_docs_dir}/cgi/xxx>', + ' RewriteEngine On', + ' RewriteRule .* /proxy/echo.py [QSA]', + '</Directory>', + ] + }) + conf.add_vhost_cgi(proxy_self=True).install() + assert env.apache_restart() == 0 url = env.mkurl("https", "cgi", "/xxx/test.json") r = env.curl_post_data(url, data="0123456789", options=[]) assert r.exit_code == 0 |