From 57ddc5ca505adeb3e44542335b01a6f0e8887ddc Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Mon, 21 Jan 2019 02:13:06 +0100 Subject: lacme, client: new dependency Date::Parse. --- client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client b/client index 9ce52a0..c152e30 100755 --- a/client +++ b/client @@ -50,6 +50,7 @@ use Fcntl qw/O_CREAT O_EXCL O_WRONLY/; use Digest::SHA qw/sha256 sha256_hex/; use MIME::Base64 qw/encode_base64 encode_base64url/; +use Date::Parse (); use LWP::UserAgent (); use Types::Serialiser (); use JSON (); @@ -148,7 +149,6 @@ sub request_retry_after($) { my $r = shift; my $v = $r->header('Retry-After'); if (defined $v and $v !~ /\A\d+\z/) { - require 'Date/Parse.pm'; $v = Date::Parse::str2time($v); if (defined $v) { $v = $v - time; -- cgit v1.2.3