Fix for Path('0') handling (RT #29334)
[catagits/Catalyst-Runtime.git] / lib / Catalyst.pm
index 9e51a9d..749d567 100644 (file)
@@ -1600,7 +1600,8 @@ sub prepare {
     }
 
     my $method  = $c->req->method  || '';
-    my $path    = $c->req->path    || '/';
+    my $path    = $c->req->path;
+    $path       = '/' unless length $path;
     my $address = $c->req->address || '';
 
     $c->log->debug(qq/"$method" request for "$path" from "$address"/)