X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FController%2FWrapCGI.pm;h=485a66318a435286279311bf24ab353739c01cdf;hb=99c7837b23d0beb7c8d4c2f050c25472fb7cc2d8;hp=92275f3ee6f9d7e43bd8600011c30a2457f38f05;hpb=3149e3cb8f8202f259063b8b25c6a60cd5c9c57b;p=catagits%2FCatalyst-Controller-WrapCGI.git diff --git a/lib/Catalyst/Controller/WrapCGI.pm b/lib/Catalyst/Controller/WrapCGI.pm index 92275f3..485a663 100644 --- a/lib/Catalyst/Controller/WrapCGI.pm +++ b/lib/Catalyst/Controller/WrapCGI.pm @@ -21,7 +21,7 @@ Catalyst::Controller::WrapCGI - Run CGIs in Catalyst =cut -our $VERSION = '0.032'; +our $VERSION = '0.034'; =head1 SYNOPSIS @@ -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/',