[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#55030] [PATCH v2 07/34] http-client: 'http-fetch/cached' converts s
From: |
Philip McGrath |
Subject: |
[bug#55030] [PATCH v2 07/34] http-client: 'http-fetch/cached' converts strings to URIs. |
Date: |
Wed, 18 May 2022 14:10:54 -0400 |
* guix/http-client.scm (http-fetch/cached): Use 'string->uri' if URI is
a string, as with 'http-fetch'.
---
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 @@ (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
--
2.32.0
- [bug#55030] [PATCH v2 00/34] gnu: elm: Update to 0.19.1. Add build system & importer., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 03/34] guix: Add elm-build-system., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 04/34] gnu: Add elm-core and elm-json., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 01/34] gnu: elm-compiler: Update to 0.19.1., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 06/34] http-client: Accept '#:headers' in 'http-fetched/cached'., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 08/34] import: json: Accept '#:http-fetch' in 'json-fetch'., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 09/34] import: Add Elm importer., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 02/34] gnu: elm: Rename package to match the command., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 07/34] http-client: 'http-fetch/cached' converts strings to URIs.,
Philip McGrath <=
- [bug#55030] [PATCH v2 05/34] build-system/elm: Add implicit Elm inputs., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 13/34] gnu: Add elm-time., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 14/34] gnu: Add elm-url., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 10/34] gnu: Add elm-virtual-dom., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 12/34] gnu: Add elm-svg., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 11/34] gnu: Add elm-html., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 15/34] gnu: Add elm-browser., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 22/34] gnu: elm: Support 'elm reactor'., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 21/34] gnu: Add elm-explorations-markdown., Philip McGrath, 2022/05/18
- [bug#55030] [PATCH v2 23/34] gnu: Add elm-todomvc., Philip McGrath, 2022/05/18