mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 21:46:35 +01:00
download: Follow HTTP redirection upon 301 "moved permanently".
* guix/build/download.scm (http-fetch): Follow redirections upon 301. This is what `downloads.sourceforge.net' returns, for instance.
This commit is contained in:
parent
695e671723
commit
67158a4900
1 changed files with 2 additions and 1 deletions
|
@ -207,7 +207,8 @@ (define (http-fetch uri file)
|
|||
(newline))
|
||||
(put-bytevector p bv-or-port))))
|
||||
file))
|
||||
((302) ; found (redirection)
|
||||
((301 ; moved permanently
|
||||
302) ; found (redirection)
|
||||
(let ((uri (response-location resp)))
|
||||
(format #t "following redirection to `~a'...~%"
|
||||
(uri->string uri))
|
||||
|
|
Loading…
Reference in a new issue