projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
4a6f54d
)
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
patch
|
blob
|
blame
|
history
lib/Catalyst/Response.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Catalyst/Engine.pm
b/lib/Catalyst/Engine.pm
index
2ca6a39
..
c516409
100644
(file)
--- a/
lib/Catalyst/Engine.pm
+++ b/
lib/Catalyst/Engine.pm
@@
-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,
)
);
diff --git
a/lib/Catalyst/Response.pm
b/lib/Catalyst/Response.pm
index
4a66715
..
ad16cdb
100644
(file)
--- a/
lib/Catalyst/Response.pm
+++ b/
lib/Catalyst/Response.pm
@@
-115,6
+115,8
@@
Possible parameters are:
=item secure
+=item httponly
+
=back
=head2 $res->header