chiark / gitweb /
dgit: curl: pass CURLOPT_FOLLOWLOCATION
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Sep 2019 19:37:28 +0000 (20:37 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 6 Sep 2019 19:37:28 +0000 (20:37 +0100)
This was accidentally dropped in the 9.6 http changes.

Closes: #939564
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 56b2ee957e7c95f3a2eba328969df95843565c4f..cdccc6057d10f30e65b66492e2962e17455d0af7 100755 (executable)
--- 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);