From: Stefan Eissing Date: Wed, 30 Mar 2022 08:07:13 +0000 (+0000) Subject: *) test: verify that HTTP/2 response carry `Date` and X-Git-Tag: 2.5.0-alpha2-ci-test-only~427 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6815cf7d449b5b625d11f2ed0557df30dc625818;p=thirdparty%2Fapache%2Fhttpd.git *) 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 --- diff --git a/test/modules/http2/test_003_get.py b/test/modules/http2/test_003_get.py index f38c745b396..30f18d3524e 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']