Subject: | undef body causes warning |
Date: | Fri, 19 Sep 2014 11:11:17 -0500 |
To: | bug-Net-Async-HTTP-Server [...] rt.cpan.org |
From: | fREW Schmidt <frioux [...] gmail.com> |
When you have a plack app running under
Net::Async::HTTP::Server::PSGI, if it returns something like this:
[200, ['Content-type' => 'text/html'], []]
You get warnings like this:
Use of uninitialized value in addition (+) at /home/frew/.plenv/versions/5.20.1/lib/perl5/site_perl/5.20.1/Net/Async/HTTP/Server/PSGI.pm line 217.
Now obviously a user should not return a body like that, but it might
be nice if instead of a warning it either warned that the body was
empty/missing, or just did || ''.
--
fREW Schmidt
https://blog.afoolishmanifesto.com
Message body not shown because it is not plain text.