ports/www/mod_evasive/files/patch-test.pl
Li-Wen Hsu b57c6320ea www/mod_evasive: fix HTTP request in test.pl
Also some cleanups from swills and me.

PR:		237817
Submitted by:	HATANO Tomomi <hatanou@infolab.ne.jp>
Approved by:	kiwi@oav.net (maintainer)
2020-06-27 08:49:26 +00:00

11 lines
400 B
Perl

--- test.pl.orig 2017-02-22 02:33:36 UTC
+++ test.pl
@@ -10,7 +10,7 @@ for(0..100) {
my($SOCKET) = new IO::Socket::INET( Proto => "tcp",
PeerAddr=> "127.0.0.1:80");
if (! defined $SOCKET) { die $!; }
- print $SOCKET "GET /?$_ HTTP/1.0\n\n";
+ print $SOCKET "GET /?$_ HTTP/1.0\r\n\r\n";
$response = <$SOCKET>;
print $response;
close($SOCKET);