[Catalyst] HTTP Response body doesn't get sent
Terence Monteiro
terence at deeproot.co.in
Fri Apr 3 13:02:25 GMT 2009
On Fri, Apr 03, 2009 at 01:45:11PM +0100, Tomas Doran wrote:
> Terence Monteiro wrote:
>>
>> Controller action code:
>> # fetching $content
>> $c->res->body($content);
>> my $ctype = $attach->contentType;
>> $c->res->content_type($ctype);
>
> Setting the body expects the parameter to be a file handle unless its a
> straight scalar.
>
> Your $content, I guess, is a reference to some object, which is what is
> causing the issues.
Thanks a ton! It is indeed a reference to a Mail::Message::Body::Lines
object. On stringification, the code works!
--
Regards, Terence.
http://www.deeproot.in
Ph: +91 (80) 4089 0000
More information about the Catalyst
mailing list