Commit 2032e803 authored by intrigeri's avatar intrigeri
Browse files

htpdate: when date header cannot be fetched, print URL too.

For easier diagnostics of failing servers.

Patch by Linus Nordberg <linus@nordberg.se>.
parent 25a7f040
......@@ -244,7 +244,7 @@ sub getUrlDateDiff {
rmtree($tmpdir);
defined $newestdt or error "Could not get any Date header";
defined $newestdt or error "Could not get any Date header from $url";
my $newest_epoch = $newestdt->epoch();
my $diff = $newest_epoch - $local;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment