mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
http-client: 'http-fetch' converts strings to URIs.
* guix/http-client.scm (http-fetch): Use 'string->uri' if URI is a
string. Fixes a regression introduced in 8a5063f.
This commit is contained in:
@@ -207,7 +207,9 @@ textual. Follow any HTTP redirection. When BUFFERED? is #f, return an
|
||||
unbuffered port, suitable for use in `filtered-port'.
|
||||
|
||||
Raise an '&http-get-error' condition if downloading fails."
|
||||
(let loop ((uri uri))
|
||||
(let loop ((uri (if (string? uri)
|
||||
(string->uri uri)
|
||||
uri)))
|
||||
(let ((port (or port (open-connection-for-uri uri))))
|
||||
(unless buffered?
|
||||
(setvbuf port _IONBF))
|
||||
|
||||
Reference in New Issue
Block a user