You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2020/06/17 18:35:47 UTC
svn commit: r1878937 - /httpd/test/framework/trunk/t/apache/http_strict.t
Author: rpluem
Date: Wed Jun 17 18:35:47 2020
New Revision: 1878937
URL: http://svn.apache.org/viewvc?rev=1878937&view=rev
Log:
* Requests following the HTTP/1.x syntax will now be rejected if their
HTTP protocol version is >= 2.0.
Modified:
httpd/test/framework/trunk/t/apache/http_strict.t
Modified: httpd/test/framework/trunk/t/apache/http_strict.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/http_strict.t?rev=1878937&r1=1878936&r2=1878937&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Wed Jun 17 18:35:47 2020
@@ -12,6 +12,10 @@ my $test_underscore = defined(&need_min_
need_min_apache_fix("2.4.34", "2.5.1") :
need_min_apache_version('2.4.34');
+my $test_unsupported_version = defined(&need_min_apache_fix) ?
+ need_min_apache_fix("2.5.1") :
+ need_min_apache_version('2.5.1');
+
# possible expected results:
# 0: any HTTP error
# 1: any HTTP success
@@ -32,7 +36,7 @@ my @test_cases = (
[ "GET\t/ HTTP/1.0\r\n\r\n" => 400],
[ "GET / HTT/1.0\r\n\r\n" => 0],
[ "GET / HTTP/1.0\r\nHost: localhost\r\n\r\n" => 1],
- [ "GET / HTTP/2.0\r\nHost: localhost\r\n\r\n" => 1],
+ [ "GET / HTTP/2.0\r\nHost: localhost\r\n\r\n" => 1, 505, $test_unsupported_version],
[ "GET / HTTP/1.2\r\nHost: localhost\r\n\r\n" => 1],
[ "GET / HTTP/1.11\r\nHost: localhost\r\n\r\n" => 400],
[ "GET / HTTP/10.0\r\nHost: localhost\r\n\r\n" => 400],