mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 14:41:42 +03:00
Don't discard curl options if timeout is not defined.
Merge of 5078abdb33
This commit is contained in:
parent
9cb481a73f
commit
fdbb950495
1 changed files with 1 additions and 1 deletions
|
|
@ -3339,7 +3339,7 @@ sub ResolveRedirectionForCurl {
|
|||
# Add a timeout flat to URL_FETCHER. Returns a new list.
|
||||
sub AddFetchTimeout {
|
||||
my $timeout = shift;
|
||||
my @fetcher = shift;
|
||||
my @fetcher = @_;
|
||||
if (defined($timeout)) {
|
||||
if (join(" ", @fetcher) =~ m/\bcurl -s/) {
|
||||
push(@fetcher, "--max-time", sprintf("%d", $timeout));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue