Permalink
Browse files

update Mojo::UserAgent usage, uvtc++

  • Loading branch information...
1 parent 096b715 commit 6f3320d12f3c171622079b6159f88be64d9ddd63 @moritz moritz committed Apr 28, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 web/build-project-list.pl
@@ -17,7 +17,9 @@
# LWP::Simple doesn't seem to like https, even when IO::Socket::INET
# and Crypt::SSLeay are installed. So replace its functions with
# Mojolicious
-my $ua = Mojo::UserAgent->new->ioloop(Mojo::IOLoop->new->connect_timeout(10));
+my $ua = Mojo::UserAgent->new;
+$ua->connect_timeout(10);
+$ua->request_timeout(10);
sub get {
$ua->get($_[0])->res->body
}

0 comments on commit 6f3320d

Please sign in to comment.