fix content-length for CGI scripts that don't print any headers
[catagits/HTTP-Request-AsCGI.git] / t / 08error.t
index d611bb4..1d516fb 100644 (file)
@@ -13,7 +13,7 @@ my $response;
 
 {
     my $r = HTTP::Request->new( GET => 'http://www.host.com/' );
-    my $c = HTTP::Request::AsCGI->new( request => $r );
+    my $c = HTTP::Request::AsCGI->new($r);
 
     $c->setup;
 
@@ -29,7 +29,7 @@ ok( length($response->content) > 0, 'Response Content' );
 
 {
     my $r = HTTP::Request->new( GET => 'http://www.host.com/' );
-    my $c = HTTP::Request::AsCGI->new( request => $r );
+    my $c = HTTP::Request::AsCGI->new($r);
 
     $c->setup;