mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
http-client: 'http-fetch/cached' converts strings to URIs.
* guix/http-client.scm (http-fetch/cached): Use 'string->uri' if URI is a string, as with 'http-fetch'. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
00a5a07bb2
commit
ae533e3084
1 changed files with 4 additions and 1 deletions
|
@ -314,7 +314,10 @@ (define* (http-fetch/cached uri #:key (ttl (%http-cache-ttl)) text?
|
|||
TIMEOUT specifies the timeout in seconds for connection establishment.
|
||||
|
||||
Write information about redirects to LOG-PORT."
|
||||
(let ((file (cache-file-for-uri uri)))
|
||||
(let* ((uri (if (string? uri)
|
||||
(string->uri uri)
|
||||
uri))
|
||||
(file (cache-file-for-uri uri)))
|
||||
(define (update-cache cache-port)
|
||||
(define cache-time
|
||||
(and cache-port
|
||||
|
|
Loading…
Reference in a new issue