Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update Mojo::UserAgent usage, uvtc++

  • Loading branch information...
commit 6f3320d12f3c171622079b6159f88be64d9ddd63 1 parent 096b715
Moritz Lenz moritz authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 web/build-project-list.pl
4 web/build-project-list.pl
View
@@ -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
}
Please sign in to comment.
Something went wrong with that request. Please try again.