[Catalyst] HTTP method matching (was Path is "/")

Nick catalyst at acrasis.net
Wed Sep 7 10:23:48 GMT 2011


On 2011-09-06 14:34, Nick wrote:
> Catalyst isn't dispatching how I expected.  A 'Login' controller has

I found the culprit.  My controller uses this

http://wiki.catalystframework.org/wiki/gettingstarted/howtos/HTTP_method_matching_for_actions

which contains

   # Continue to action if no HTTP methods specified
   $self->$orig( @_ ) and return 0
      if ! $self->attributes->{Methods};

Perhaps that should be

   # Continue to match if no HTTP methods specified
   return $self->$orig( @_ )
      if ! $self->attributes->{Methods};

?
--
Nick




More information about the Catalyst mailing list