httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: POST with no data
Date Tue, 17 Sep 2002 20:16:02 GMT
i think lwp does the right thing, but TestRequest.pm does not.
patch below should fix (untested).

--- Apache-Test/lib/Apache/TestRequest.pm       4 Apr 2002 00:54:26 -0000  1.71
+++ Apache-Test/lib/Apache/TestRequest.pm       17 Sep 2002 20:22:38 -0000
@@ -251,7 +251,7 @@
         $credentials{$keep->{realm} || '__ALL__'} =
           [$keep->{username}, $keep->{password}];
     }
-    if (my $content = $keep->{content}) {
+    if (defined(my $content = $keep->{content})) {
         if ($content eq '-') {
             $content = join '', <STDIN>;
         }




Mime
View raw message