diff options
author | Eric Wong <e@80x24.org> | 2022-09-29 17:48:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-09-29 18:05:55 +0000 |
commit | d6aa79dcb15bb78f5ed6cb3c0d8d209b4e9e9064 (patch) | |
tree | e7d74376baeef85a09c1d25e8c99981ca5749473 /lib/PublicInbox/LeiCurl.pm | |
parent | d02a695ea7505b8fd048c6b4702a46cea62f2b85 (diff) | |
download | public-inbox-d6aa79dcb15bb78f5ed6cb3c0d8d209b4e9e9064.tar.gz |
curl 7.29.0 (on CentOS 7.x) seems to mishandle square-bracketed IPv6 addresses, at least. Furthermore, we don't actually need nor use the globbing in curl for lei when forwarding requests from the lei command-line. lei has its own globbing and `--globoff' behavior for externals and none of it is intended for curl.
Diffstat (limited to 'lib/PublicInbox/LeiCurl.pm')
-rw-r--r-- | lib/PublicInbox/LeiCurl.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiCurl.pm b/lib/PublicInbox/LeiCurl.pm index 5ffade99..4e602a48 100644 --- a/lib/PublicInbox/LeiCurl.pm +++ b/lib/PublicInbox/LeiCurl.pm @@ -1,4 +1,4 @@ -# Copyright (C) 2021 all contributors <meta@public-inbox.org> +# Copyright (C) all contributors <meta@public-inbox.org> # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt> # common option and torsocks(1) wrapping for curl(1) @@ -27,7 +27,7 @@ sub new { my ($cls, $lei, $curl) = @_; $curl //= which('curl') // return $lei->fail('curl not found'); my $opt = $lei->{opt}; - my @cmd = ($curl, qw(-Sf)); + my @cmd = ($curl, qw(-gSf)); $cmd[-1] .= 's' if $opt->{quiet}; # already the default for "lei q" $cmd[-1] .= 'v' if $opt->{verbose}; # we use ourselves, too for my $o ($lei->curl_opt) { |