Skip to content

Commit

Permalink
mention what an expires value looks like
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 10, 2015
1 parent aca57be commit fa631a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/Util.pm
Expand Up @@ -386,7 +386,7 @@ sub _header {
while ($str =~ s/^[,;\s]*([^=;, ]+)\s*//) {
push @token, $1, undef;

# Special "expires" value
# Special "expires" value (Sun, 06 Nov 1994 08:49:37 GMT)
my $e = $cookie && lc $1 eq 'expires';
if ($e && $str =~ s/^=\s*(\w+\,\s+\d+\W+\w+\D+\d+\s+\d+:\d+:\d+\s+GMT)//) {
$token[-1] = $1;
Expand Down

0 comments on commit fa631a9

Please sign in to comment.