[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/35: http-client: 'http-fetch/cached' converts strings to URIs.
From: |
guix-commits |
Subject: |
07/35: http-client: 'http-fetch/cached' converts strings to URIs. |
Date: |
Sat, 21 May 2022 19:43:04 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit ae533e3084b726188e78d1519f058e05c8388960
Author: Philip McGrath <philip@philipmcgrath.com>
AuthorDate: Wed May 18 14:10:54 2022 -0400
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>
---
guix/http-client.scm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/guix/http-client.scm b/guix/http-client.scm
index 699f5dfd57..9138a627ac 100644
--- a/guix/http-client.scm
+++ b/guix/http-client.scm
@@ -314,7 +314,10 @@ added automatically as appropriate.
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
- 18/35: gnu: Add elm-http., (continued)
- 18/35: gnu: Add elm-http., guix-commits, 2022/05/21
- 11/35: gnu: Add elm-html., guix-commits, 2022/05/21
- 01/35: gnu: elm-compiler: Update to 0.19.1., guix-commits, 2022/05/21
- 05/35: build-system/elm: Add implicit Elm inputs., guix-commits, 2022/05/21
- 03/35: guix: Add elm-build-system., guix-commits, 2022/05/21
- 24/35: gnu: Add elm-debois-elm-dom., guix-commits, 2022/05/21
- 09/35: import: Add Elm importer., guix-commits, 2022/05/21
- 28/35: gnu: Add elm-danhandrea-elm-time-extra., guix-commits, 2022/05/21
- 13/35: gnu: Add elm-time., guix-commits, 2022/05/21
- 10/35: gnu: Add elm-virtual-dom., guix-commits, 2022/05/21
- 07/35: http-client: 'http-fetch/cached' converts strings to URIs.,
guix-commits <=
- 34/35: gnu: Add elm-terezka-elm-charts., guix-commits, 2022/05/21