chiark / gitweb /
dgit: curl: pass CURLOPT_FOLLOWLOCATION
[dgit.git] / 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);