X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FResponse.pm;h=2bf4dfeed04ab7be1100ca8fbaed19fa61722c6e;hb=ffb438031c2764e94ffe9e9af68a1b172eac4740;hp=9c8a4b2d80c41a2c3b861ba2c837176906adc1f1;hpb=99a543eea153f4d7f6161e171bb7f4770e966138;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 9c8a4b2..2bf4dfe 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -6,7 +6,8 @@ use HTTP::Headers; with 'MooseX::Emulate::Class::Accessor::Fast'; has cookies => (is => 'rw', default => sub { {} }); -has body => (is => 'rw', default => undef, lazy => 1, predicate => 'has_body'); +has body => (is => 'rw', default => undef); +sub has_body { defined($_[0]->body) } has location => (is => 'rw'); has status => (is => 'rw', default => 200);