Add HTTP method DELETE
nperez [Sun, 7 Feb 2010 01:45:40 +0000 (19:45 -0600)]
lib/Catalyst/Action/Deserialize.pm

index ead726d..de61f2d 100644 (file)
@@ -16,7 +16,7 @@ sub execute {
     my $self = shift;
     my ( $controller, $c ) = @_;
 
-    my @demethods = qw(POST PUT OPTIONS);
+    my @demethods = qw(POST PUT OPTIONS DELETE);
     my $method    = $c->request->method;
     if ( grep /^$method$/, @demethods ) {
         my ( $sclass, $sarg, $content_type ) =