[Catalyst] Catalyst::Plugin::DefaultEnd - returning a false string (zeroes)

Adam Sjøgren adsj at novozymes.com
Wed Jun 21 10:46:43 CEST 2006


On Fri, 7 Apr 2006 14:30:34 +0100, Carl wrote:

> On 07/04/06, ADSJ (Adam Sjøgren) <adsj at novozymes.com> wrote:
>> -    return 1 if $c->response->body;
>> +    return 1 if length $c->response->body;

> That'll cause a warning whenever body is undefined.

I didn't see any warnings when I tried it, but that should not stand
in our way, so please find attached a patch, updated as you suggested,
and I have included a test as well.


  Best regards & thanks,

       Adam

-- 
                                                          Adam Sjøgren
                                                    adsj at novozymes.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zero_body.patch
Type: text/x-patch
Size: 2974 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060621/69bd93fd/attachment.bin 


More information about the Catalyst mailing list