diff options
author | Stefan Eissing <icing@apache.org> | 2022-03-30 10:07:13 +0200 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2022-03-30 10:07:13 +0200 |
commit | 6815cf7d449b5b625d11f2ed0557df30dc625818 (patch) | |
tree | 21c0a5edda54d6bfd401574ddcb44e077adf35e7 /test/modules | |
parent | xforms (diff) | |
download | apache2-6815cf7d449b5b625d11f2ed0557df30dc625818.tar.xz apache2-6815cf7d449b5b625d11f2ed0557df30dc625818.zip |
*) test: verify that HTTP/2 response carry `Date` and
`Server` headers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1899379 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/modules')
-rw-r--r-- | test/modules/http2/test_003_get.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/modules/http2/test_003_get.py b/test/modules/http2/test_003_get.py index f38c745b39..30f18d3524 100644 --- a/test/modules/http2/test_003_get.py +++ b/test/modules/http2/test_003_get.py @@ -228,3 +228,12 @@ content-type: text/html r = env.nghttp().get(url, options=opt) assert r.exit_code == 0, r assert r.response['status'] == 200 + + # Test that we get a proper `Date` and `Server` headers on responses + def test_h2_003_60(self, env): + url = env.mkurl("https", "test1", "/index.html") + r = env.curl_get(url) + assert r.exit_code == 0, r + assert r.response['status'] == 200 + assert 'date' in r.response['header'] + assert 'server' in r.response['header'] |