fix test failures with Catalyst-Runtime-5.90012
Robert Buels [Thu, 14 Jun 2012 14:57:44 +0000 (10:57 -0400)]
lib/Catalyst/Controller/WrapCGI.pm

index 06cc3d3..485a663 100644 (file)
@@ -163,7 +163,7 @@ sub wrap_cgi {
   if ($body) { # Slurp from body filehandle
     local $/; $body_content = <$body>;
   } else {
-    my $body_params = $c->req->body_parameters;
+    my $body_params = $c->req->body_parameters || {};
 
     if (my %uploads = %{ $c->req->uploads }) {
       my $post = POST 'http://localhost/',