summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2022-03-30 08:07:13 +0000
committerStefan Eissing <icing@apache.org>2022-03-30 08:07:13 +0000
commit6815cf7d449b5b625d11f2ed0557df30dc625818 (patch)
tree21c0a5edda54d6bfd401574ddcb44e077adf35e7 /test
parent41141349d146c0b263f26c7a577ef12094159555 (diff)
downloadhttpd-6815cf7d449b5b625d11f2ed0557df30dc625818.tar.gz
*) 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')
-rw-r--r--test/modules/http2/test_003_get.py9
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']