mirror of
https://github.com/apache/httpd.git
synced 2025-07-29 12:37:06 +00:00
test http1, add version check for trailer tests
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1919125 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@ -15,6 +15,8 @@ class TestTrailers:
|
||||
|
||||
# check that we get a trailer out when telling the handler to add one
|
||||
def test_h1_005_01(self, env):
|
||||
if not env.httpd_is_at_least("2.5.0"):
|
||||
pytest.skip(f'need at least httpd 2.5.0 for this')
|
||||
url = env.mkurl("https", "cgi", "/h1test/echo")
|
||||
host = f"cgi.{env.http_tld}"
|
||||
fpath = os.path.join(env.gen_dir, "data-1k")
|
||||
@ -27,6 +29,8 @@ class TestTrailers:
|
||||
|
||||
# check that we get out trailers through the proxy
|
||||
def test_h1_005_02(self, env):
|
||||
if not env.httpd_is_at_least("2.5.0"):
|
||||
pytest.skip(f'need at least httpd 2.5.0 for this')
|
||||
url = env.mkurl("https", "cgi", "/proxy/h1test/echo")
|
||||
host = f"cgi.{env.http_tld}"
|
||||
fpath = os.path.join(env.gen_dir, "data-1k")
|
||||
|
Reference in New Issue
Block a user