summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-09-06 20:37:28 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-09-06 20:37:28 +0100
commit1ddac7dd4bfaaf5788648cb458f9afa37661fa98 (patch)
tree3f14af5132b03d4004abef00bfee6e81429e1a53 /dgit
parent612beece6df32e68c70d04284280601f7a7825ca (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>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit1
1 files changed, 1 insertions, 0 deletions
diff --git a/dgit b/dgit
index 56b2ee9..cdccc60 100755
--- a/dgit
+++ b/dgit
@@ -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);