Fixed uninitialized warnings with HTTP::Daemon
Christian Hansen [Mon, 25 Apr 2005 12:07:01 +0000 (12:07 +0000)]
lib/Catalyst/Engine.pm
lib/Catalyst/Request.pm

index 9b47011..d061984 100644 (file)
@@ -411,10 +411,10 @@ sub prepare {
         ),
         response => Catalyst::Response->new(
             {
-                body    => undef,
+                body    => '',
                 cookies => {},
                 headers => HTTP::Headers->new,
-                status => 200
+                status  => 200
             }
         ),
         stash => {},
index da5e8d8..8f96505 100644 (file)
@@ -189,7 +189,7 @@ sub param {
         }
     }
 
-    if ( @_ > 1  ) {
+    if ( @_ > 1 ) {
 
         while ( my ( $field, $value ) = splice( @_, 0, 2 ) ) {