Add HTTP method DELETE
[catagits/Catalyst-Action-REST.git] / 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 ) =