Skip to content

Commit

Permalink
fix all MetaCPAN examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 26, 2017
1 parent 2f5ee3d commit 6544a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1237,11 +1237,11 @@ keep many concurrent connections active at the same time.

# Concurrent non-blocking requests
my $ua = Mojo::UserAgent->new;
$ua->get('http://metacpan.org/search?q=mojo' => sub {
$ua->get('https://metacpan.org/search?q=mojo' => sub {
my ($ua, $mojo) = @_;
say $mojo->result->dom->at('title')->text;
});
$ua->get('http://metacpan.org/search?q=minion' => sub {
$ua->get('https://metacpan.org/search?q=minion' => sub {
my ($ua, $minion) = @_;
say $minion->result->dom->at('title')->text;
});
Expand Down

0 comments on commit 6544a40

Please sign in to comment.