You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2022/03/30 08:07:13 UTC

svn commit: r1899379 - /httpd/httpd/trunk/test/modules/http2/test_003_get.py

Author: icing
Date: Wed Mar 30 08:07:13 2022
New Revision: 1899379

URL: http://svn.apache.org/viewvc?rev=1899379&view=rev
Log:
  *) test: verify that HTTP/2 response carry `Date` and
     `Server` headers.


Modified:
    httpd/httpd/trunk/test/modules/http2/test_003_get.py

Modified: httpd/httpd/trunk/test/modules/http2/test_003_get.py
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/test/modules/http2/test_003_get.py?rev=1899379&r1=1899378&r2=1899379&view=diff
==============================================================================
--- httpd/httpd/trunk/test/modules/http2/test_003_get.py (original)
+++ httpd/httpd/trunk/test/modules/http2/test_003_get.py Wed Mar 30 08:07:13 2022
@@ -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']