C::Engine - added support for HTTPOnly flag on cookies (this is necessary before...
KMX [Sun, 31 May 2009 19:53:25 +0000 (19:53 +0000)]
lib/Catalyst/Engine.pm
lib/Catalyst/Response.pm

index 2ca6a39..c516409 100644 (file)
@@ -85,7 +85,8 @@ sub finalize_cookies {
                 -expires => $val->{expires},
                 -domain  => $val->{domain},
                 -path    => $val->{path},
-                -secure  => $val->{secure} || 0
+                -secure  => $val->{secure} || 0,
+                -httponly => $val->{httponly} || 0,
             )
         );
 
index 4a66715..ad16cdb 100644 (file)
@@ -115,6 +115,8 @@ Possible parameters are:
 
 =item secure
 
+=item httponly
+
 =back
 
 =head2 $res->header