diff options
author | Stefan Eissing <icing@apache.org> | 2022-02-10 10:59:08 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-02-10 10:59:08 +0000 |
commit | b90220157d4ef25d2ecbbb96ee8b2e99b661f8d5 (patch) | |
tree | 2ce4130b6fc8d6a598d50dace88bbbcda7f78bd1 /test | |
parent | 9a317b45e570ff33623fd84ad968e36a635751b0 (diff) | |
download | httpd-b90220157d4ef25d2ecbbb96ee8b2e99b661f8d5.tar.gz |
*) mod_http2: :scheme pseudo-header values, not matching the
connection scheme, are forwarded via absolute uris to the
http protocol processing to preserve semantics of the request.
Checks on combinations of pseudo-headers values/absence
have been added as described in RFC 7540.
Fixes <https://github.com/icing/mod_h2/issues/230>.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897940 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test')
-rw-r--r-- | test/modules/http2/test_003_get.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/modules/http2/test_003_get.py b/test/modules/http2/test_003_get.py index 09ea31167d..ccef11fbde 100644 --- a/test/modules/http2/test_003_get.py +++ b/test/modules/http2/test_003_get.py @@ -215,7 +215,15 @@ content-type: text/html # use an invalid scheme def test_h2_003_51(self, env): url = env.mkurl("https", "cgi", "/") - opt = ["-H:scheme: http"] + opt = ["-H:scheme: invalid"] r = env.nghttp().get(url, options=opt) assert r.exit_code == 0, r assert r.response['status'] == 400 + + # use an differing scheme, but one that is acceptable + def test_h2_003_52(self, env): + url = env.mkurl("https", "cgi", "/") + opt = ["-H:scheme: http"] + r = env.nghttp().get(url, options=opt) + assert r.exit_code == 0, r + assert r.response['status'] == 200 |