Permalink
Browse files

HTTPx::Dispatcher: should not allow 'POST' request for /blog/:year/:m…

…onth
  • Loading branch information...
1 parent 78e128b commit e190064f17859074b9e7f604ae59a4ebb1e60086 @tokuhirom tokuhirom committed Mar 16, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 httpx-dispatcher.pl
View
@@ -26,6 +26,7 @@
package MyApp::C::Blog;
sub monthly {
my($class, $req, $p) = @_;
+ return $req->new_response(404) if $req->method eq 'POST';
my $res = $req->new_response(200);
$res->content_type('text/html');
$res->content("Blog posts from $p->{year}/$p->{month}");

0 comments on commit e190064

Please sign in to comment.