You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ji...@apache.org on 2017/07/10 12:22:04 UTC
svn commit: r1801455 - /httpd/test/framework/trunk/t/modules/remoteip.t
Author: jim
Date: Mon Jul 10 12:22:04 2017
New Revision: 1801455
URL: http://svn.apache.org/viewvc?rev=1801455&view=rev
Log:
explain the test and what we expect and why we expect it
Modified:
httpd/test/framework/trunk/t/modules/remoteip.t
Modified: httpd/test/framework/trunk/t/modules/remoteip.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/remoteip.t?rev=1801455&r1=1801454&r2=1801455&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/modules/remoteip.t (original)
+++ httpd/test/framework/trunk/t/modules/remoteip.t Mon Jul 10 12:22:04 2017
@@ -46,10 +46,10 @@ ok $sock;
$sock->print($req . $url);
$sock->shutdown(1);
+# In httpd, a bad PROXY format simply results in the connection
+# being dropped. So ensure we don't get anything that looks
+# like a response
$response_data = slurp($sock);
-#print "--\n";
-#print "$response_data\n";
-#print "--\n";
$r = HTTP::Response->parse($response_data);
chomp($content = $r->content);
ok t_cmp($r->code, undef, "broken PROXY protocol human readable check");