Skip to content

Commit

Permalink
Merge pull request #23 from Mons/samesite
Browse files Browse the repository at this point in the history
Support SameSite parameter for cookies
  • Loading branch information
Mons authored Mar 15, 2023
2 parents 5a72946 + 3028dac commit bba5e60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ WriteMakefile(
AnyEvent => 5,
'Digest::SHA1' => 2,
'JSON::XS' => 3,
'HTTP::Easy' => 0.02,
'HTTP::Easy' => 0.04,
},
ABSTRACT_FROM => 'lib/AnyEvent/HTTP/Server.pm', # retrieve abstract from module
AUTHOR => 'Mons Anderson <[email protected]>',
Expand Down
2 changes: 1 addition & 1 deletion lib/AnyEvent/HTTP/Server.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ AnyEvent::HTTP::Server - AnyEvent HTTP/1.1 Server

our $VERSION;
BEGIN{
$VERSION = '1.99996';
$VERSION = '1.99997';
}

use AnyEvent::HTTP::Server::Kit;
Expand Down
1 change: 1 addition & 0 deletions lib/AnyEvent/HTTP/Server/Req.pm
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ BEGIN {
push @c, "path=" . $p;
push @c, "Secure" if $o->{secure};
push @c, "HttpOnly" if $o->{httponly};
push @c, "SameSite=" . $o->{samesite} if $o->{samesite};
push @bad, "\u\Lset-cookie\E: ". join('; ',@c) .$LF;
}
}
Expand Down

0 comments on commit bba5e60

Please sign in to comment.