fix Application.pm to handle empty sub protos correctly
[catagits/Web-Simple.git] / lib / Web / Simple / Application.pm
index 70339fa..f146419 100644 (file)
@@ -171,7 +171,7 @@ sub _build_dispatcher_from_spec {
   my $proto = prototype $spec;
   my $parser = $class->_build_dispatch_parser;
   my $matcher = (
-    defined($proto)
+    length($proto)
       ? $parser->parse_dispatch_specification($proto)
       : undef
   );