From: John Napiorkowski Date: Mon, 6 Jan 2014 21:47:39 +0000 (-0600) Subject: make an empty body [] not [undef] X-Git-Tag: 5.90060~31 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=caf51bc1a69e4c6b16911a46b0ec9eb164a9e8ba make an empty body [] not [undef] --- diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index 19a6cee..149d772 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -117,7 +117,7 @@ sub finalize_body { $body = [$body]; } } else { - $body = [undef]; + $body = []; } $res->_response_cb->([ $res->status, \@headers, $body]);