projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
db94073
)
Make that a warning when in debug mode
Tomas Doran [Fri, 15 Jul 2011 08:48:16 +0000 (09:48 +0100)]
lib/Catalyst/Engine.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Engine.pm
b/lib/Catalyst/Engine.pm
index
a442f6b
..
793591d
100644
(file)
--- a/
lib/Catalyst/Engine.pm
+++ b/
lib/Catalyst/Engine.pm
@@
-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;
}