From: Daniel Stenberg Date: Mon, 1 Mar 2004 07:16:45 +0000 (+0000) Subject: Report the correct size when 'verifiedserver' is requested. X-Git-Tag: curl-7_11_1~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f52c05a9e16811909505896a68f0ed374ab8b3;p=thirdparty%2Fcurl.git Report the correct size when 'verifiedserver' is requested. --- diff --git a/tests/ftpserver.pl b/tests/ftpserver.pl index f366bf4395..5bfe71cd03 100644 --- a/tests/ftpserver.pl +++ b/tests/ftpserver.pl @@ -282,7 +282,9 @@ sub RETR_command { if($testno =~ /^verifiedserver$/) { # this is the secret command that verifies that this actually is # the curl test server - print "150 Binary junk (10 bytes).\r\n"; + my $response = "WE ROOLZ: $$\r\n"; + my $len = length($response); + print "150 Binary junk ($len bytes).\r\n"; print SOCK "WE ROOLZ: $$\r\n"; close(SOCK); print "226 File transfer complete\r\n";