X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FEngine.pm;h=b7f57fd47492cba06f9bc25fa42d48484d3ae8df;hb=13985c0aedd0003d3a722c6a729ef19e998f891c;hp=a442f6b753735bbf8dfc1ae6e4b947f4ed539eb0;hpb=db9407301b748638a6f3b72d459bf7cc74162468;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Engine.pm b/lib/Catalyst/Engine.pm index a442f6b..b7f57fd 100644 --- a/lib/Catalyst/Engine.pm +++ b/lib/Catalyst/Engine.pm @@ -15,7 +15,7 @@ use utf8; use namespace::clean -except => 'meta'; -has env => (is => 'rw'); +has env => (is => 'rw', writer => '_set_env'); # input position and length has read_length => (is => 'rw'); @@ -93,7 +93,11 @@ sub finalize_cookies { -httponly => $val->{httponly} || 0, ) ); - next if(!defined $cookie); # warn? + if (!defined $cookie) { + $c->log->warn("undef passed in '$name' cookie value - not setting cookie") + if $c->debug; + next; + } push @cookies, $cookie->as_string; }