Skip to content

Commit

Permalink
domain has priority
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 9, 2013
1 parent 8e18958 commit 798edfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Mojo/UserAgent/CookieJar.pm
Expand Up @@ -69,7 +69,7 @@ sub find {
# Grab cookies
my $new = $self->{jar}{$domain} = [];
for my $cookie (@$old) {
if (my $origin = $cookie->origin) { next unless $host eq $origin }
next unless $cookie->domain || $host eq $cookie->origin;

# Check if cookie has expired
my $expires = $cookie->expires;
Expand Down

0 comments on commit 798edfb

Please sign in to comment.