From: Ian Jackson Date: Fri, 6 Sep 2019 19:37:28 +0000 (+0100) Subject: dgit: curl: pass CURLOPT_FOLLOWLOCATION X-Git-Tag: archive/debian/9.8~8 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=1ddac7dd4bfaaf5788648cb458f9afa37661fa98;p=dgit.git dgit: curl: pass CURLOPT_FOLLOWLOCATION This was accidentally dropped in the 9.6 http changes. Closes: #939564 Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 56b2ee95..cdccc605 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);