Skip to content

Instantly share code, notes, and snippets.

@monken
Created July 31, 2011 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monken/1116867 to your computer and use it in GitHub Desktop.
Save monken/1116867 to your computer and use it in GitHub Desktop.
package Catalyst::Action::MetaCPAN::Deserialize;
use Moose;
use namespace::autoclean;
extends 'Catalyst::Action::Deserialize';
sub execute {
my $self = shift;
my ( $controller, $c ) = @_;
local $c->req->{method} = 'POST' if($c->req->method eq 'GET');
return $self->maybe::next::method(@_);
}
__PACKAGE__->meta->make_immutable;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment