fix body_parameters is undef when no params
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Request.pm
index 6610358..d2c1c7f 100644 (file)
@@ -220,7 +220,7 @@ sub prepare_body_parameters {
     my ( $self ) = @_;
 
     $self->prepare_body if ! $self->_has_body;
-    return unless $self->_body;
+    return {} unless $self->_body;
 
     return $self->_body->param;
 }