httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: LWP 5.79 issues?
Date Thu, 06 May 2004 18:45:00 GMT
Stas Bekman wrote:
> Joe Orton wrote:
> 
>> I just tried httpd-test on a machine which has libwww-perl 5.79, and
>> it's failing all over the shop with this error (always the same):
>>
>> t/apache/rwrite............ok 104/114Use of uninitialized value in 
>> length at /usr/lib/perl5/vendor_perl/5.8.3/HTTP/Message.pm line 132.
>>
>> anyone else seen this or something else to add to my TODO list?
> 
> 
> Just updated to this version and yes, I see the same problem. I'm 
> looking at it now.

This should do the trick. I'm testing with the mp2 test suite now.

Index: Apache-Test/lib/Apache/TestRequest.pm
===================================================================
RCS file: 
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestRequest.pm,v
retrieving revision 1.95
diff -u -r1.95 TestRequest.pm
--- Apache-Test/lib/Apache/TestRequest.pm       4 Mar 2004 05:51:31 -0000 
  1.95
+++ Apache-Test/lib/Apache/TestRequest.pm       6 May 2004 18:44:08 -0000
@@ -387,7 +387,7 @@
          $r->header('X-Content-length-note' => 'added by Apache::TestRequest');
      }

-    $r->content(undef) unless $want_body;
+    $r->content('') unless $want_body;

      (my $string = $r->as_string) =~ s/^/\#/mg;
      $r->content($content); #reset

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message