Skip to content

Commit

Permalink
same fix for Wget
Browse files Browse the repository at this point in the history
  • Loading branch information
miyagawa committed Mar 8, 2024
1 parent 2325cf7 commit 18639cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/HTTP/Tinyish/Wget.pm
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,16 @@ sub mirror {
# This doesn't send If-Modified-Since because -O and -N are mutually exclusive :(
my($stdout, $stderr);
eval {
run3 [$wget, $self->build_options("GET", $url, $opts), $url, '-O', $file], \undef, \$stdout, \$stderr;
run3 [
$wget,
$self->build_options("GET", $url, $opts),
$url,
'-O', $file,
], \undef, \$stdout, \$stderr,
{
binmode_stdout => ":raw",
binmode_stderr => ":raw",
};
};

if ($@ or $?) {
Expand Down

0 comments on commit 18639cf

Please sign in to comment.