diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-09-06 20:37:28 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-09-06 20:37:28 +0100 |
commit | 1ddac7dd4bfaaf5788648cb458f9afa37661fa98 (patch) | |
tree | 3f14af5132b03d4004abef00bfee6e81429e1a53 | |
parent | 612beece6df32e68c70d04284280601f7a7825ca (diff) |
dgit: curl: pass CURLOPT_FOLLOWLOCATION
This was accidentally dropped in the 9.6 http changes.
Closes: #939564
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rwxr-xr-x | dgit | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1210,6 +1210,7 @@ sub url_fetch ($;@) { }; my $response_body = ''; + $setopt->(CURLOPT_FOLLOWLOCATION, 1); $setopt->(CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTPS|CURLPROTO_HTTP); $setopt->(CURLOPT_URL, $url); $setopt->(CURLOPT_NOSIGNAL, 1); |