Skip to content

Commit 85dcdef

Browse files
Dave Menningeroalders
authored andcommitted
fix: #48 update documentation about $version
1 parent c0c399c commit 85dcdef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/HTTP/Cookies.pm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,11 @@ The set_cookie() method updates the state of the $cookie_jar. The
729729
$key, $val, $domain, $port and $path arguments are strings. The
730730
$path_spec, $secure, $discard arguments are boolean values. The $maxage
731731
value is a number indicating number of seconds that this cookie will
732-
live. A value of $maxage <= 0 will delete this cookie. %rest defines
733-
various other attributes like "Comment" and "CommentURL".
732+
live. A value of $maxage <= 0 will delete this cookie. The $version argument
733+
sets the version of the cookie; the default value is 0 ( original Netscape
734+
spec ). Setting $version to another value indicates the RFC to which the
735+
cookie conforms (e.g. version 1 for RFC 2109). %rest defines various other
736+
attributes like "Comment" and "CommentURL".
734737
735738
=item $cookie_jar->save
736739

0 commit comments

Comments
 (0)