chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
612beec
)
dgit: curl: pass CURLOPT_FOLLOWLOCATION
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 6 Sep 2019 19:37:28 +0000
(20:37 +0100)
committer
Ian 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
patch
|
blob
|
history
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);