X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FWeb%2FDispatch%2FParser.pm;h=6ebc51e4d64e0163b4d7bdf4be2d1ec91712fe67;hb=59ccc1e85596c73f96fce832d900fe72a764f230;hp=a6b2332b6a9ec28e0aba4c5f9dc326a9beae910b;hpb=15e679c14bf1802ecc67e8f33b8174d277be9290;p=catagits%2FWeb-Simple.git diff --git a/lib/Web/Dispatch/Parser.pm b/lib/Web/Dispatch/Parser.pm index a6b2332..6ebc51e 100644 --- a/lib/Web/Dispatch/Parser.pm +++ b/lib/Web/Dispatch/Parser.pm @@ -35,6 +35,7 @@ sub parse { sub _parse_spec { my ($self, $spec, $nested) = @_; + return sub { {} } unless length($spec); for ($_[1]) { my @match; PARSE: { do { @@ -115,6 +116,10 @@ sub _parse_spec_section { # % /\G\%/gc and return $self->_parse_param_handler($_, 'body'); + + # * + /\G\*/gc and + return $self->_parse_param_handler($_, 'uploads'); } return; # () will trigger the blam in our caller }