http-client: Fix redirection.

* guix/http-client.scm (http-fetch): Use the right uri variable in case of
redirection.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Attila Lendvai 2022-04-10 15:41:14 +02:00 committed by Ludovic Courtès
parent 3704a7b897
commit 2c73e654fe
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -145,7 +145,7 @@ (define uri*
(or (not (uri-host uri))
(string=? host (uri-host uri)))
port)
(open-connection uri*
(open-connection uri
#:verify-certificate?
verify-certificate?
#:timeout timeout)))))