Make the HTTP engine use before instead of around to wrap {prepare,finalize}_read.
authorFlorian Ragwitz <rafl@debian.org>
Thu, 11 Sep 2008 21:31:02 +0000 (21:31 +0000)
committerFlorian Ragwitz <rafl@debian.org>
Thu, 11 Sep 2008 21:31:02 +0000 (21:31 +0000)
commit1c6a35b15865e23dbcbb8328df093bc6e50831b6
treef31397bcfac73bd7f1944150ad814a667529d4b3
parent9df7c5d97e0b93b4c896265cc7b9e78801328466
Make the HTTP engine use before instead of around to wrap {prepare,finalize}_read.

This makes the http engine tests pass again.

Still I have no idea why

around foo => sub {
shift->(@_);
};

isn't the same as

around foo => sub {
my $orig = shift;
$orig->(@_);
};

The first version will also pass the coderef to the original method.
lib/Catalyst/Engine/HTTP.pm