skip setting cookies that can't be created successfully
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Engine.pm
index ebbd138..a442f6b 100644 (file)
@@ -93,6 +93,7 @@ sub finalize_cookies {
                 -httponly => $val->{httponly} || 0,
             )
         );
+        next if(!defined $cookie); # warn?
 
         push @cookies, $cookie->as_string;
     }