aboutsummaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2019-01-21 02:13:06 +0100
committerGuilhem Moulin <guilhem@fripost.org>2019-01-21 02:13:06 +0100
commit57ddc5ca505adeb3e44542335b01a6f0e8887ddc (patch)
treeb5cf1f36dbf6a3b14fd6eb807087b66d69df1655 /client
parentd5d7aed46cc34dfbba521dc216f6f75a4309de10 (diff)
lacme, client: new dependency Date::Parse.
Diffstat (limited to 'client')
-rwxr-xr-xclient2
1 files changed, 1 insertions, 1 deletions
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;