Permalink
Browse files

make HEAD to use GET handler by default

  • Loading branch information...
1 parent 57ca4bf commit daa3163504e90b3a1e9a624cfb0adeeb2d7c12ba @miyagawa committed Apr 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Tatsumaki/Handler.pm
View
@@ -20,7 +20,7 @@ has mxhr_boundary => (is => 'rw', isa => 'Str', lazy => 1, lazy_build => 1);
has _write_buffer => (is => 'rw', isa => 'ArrayRef', lazy => 1, default => sub { [] });
-sub head { Tatsumaki::Error::HTTP->throw(405) }
+sub head { shift->get(@_) }
sub get { Tatsumaki::Error::HTTP->throw(405) }
sub post { Tatsumaki::Error::HTTP->throw(405) }
sub put { Tatsumaki::Error::HTTP->throw(405) }

0 comments on commit daa3163

Please sign in to comment.