Skip to content

Commit

Permalink
use a more verbose example for cookie filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 18, 2015
1 parent ef009da commit 4c9f7e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

6.21 2015-09-18
6.21 2015-09-19

6.20 2015-09-15
- Deprecated Mojo::UserAgent::CookieJar::collecting in favor of
Expand Down
4 changes: 2 additions & 2 deletions lib/Mojo/UserAgent/CookieJar.pm
Expand Up @@ -168,11 +168,11 @@ A callback used to decide if a cookie should be ignored by L</"collect">.
# Ignore all cookies
$jar->ignore(sub { 1 });
# Ignore cookies with domain "com"
# Ignore cookies for domains "com", "net" and "org"
$jar->ignore(sub {
my $cookie = shift;
return undef unless my $domain = $cookie->domain;
return $domain eq 'com';
return $domain eq 'com' || $domain eq 'net' || $domain eq 'org';
});
=head2 max_cookie_size
Expand Down

0 comments on commit 4c9f7e8

Please sign in to comment.