You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2018/06/25 13:18:50 UTC
svn commit: r1834319 - /httpd/test/framework/trunk/t/apache/http_strict.t
Author: covener
Date: Mon Jun 25 13:18:49 2018
New Revision: 1834319
URL: http://svn.apache.org/viewvc?rev=1834319&view=rev
Log:
add _ and - hostname tests for r1834318.
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=1834319&r1=1834318&r2=1834319&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/http_strict.t (original)
+++ httpd/test/framework/trunk/t/apache/http_strict.t Mon Jun 25 13:18:49 2018
@@ -6,6 +6,11 @@ use Apache::TestRequest;
use MIME::Base64;
use Data::Dumper;
+
+my $test_underscore = 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
@@ -91,6 +96,9 @@ my @test_cases = (
[ "GET http://foo:81/ HTTP/1.0\r\nHost: bar\r\n\r\n" => 200],
[ "GET http://[::1]:81/ HTTP/1.0\r\nHost: bar\r\n\r\n" => 200],
[ "GET http://10.0.0.1:81/ HTTP/1.0\r\nHost: bar\r\n\r\n" => 200],
+ [ "GET / HTTP/1.0\r\nHost: foo-bar.example.com\r\n\r\n" => 200],
+ [ "GET / HTTP/1.0\r\nHost: foo_bar.example.com\r\n\r\n" => 200, 200, $test_underscore],
+ [ "GET http://foo_bar/ HTTP/1.0\r\n\r\n" => 200, 200, $test_underscore],
#
# tests for response headers