substitutes: Properly construct URLs.
authorHartmut Goebel <h.goebel@crazy-compilers.com>
Wed, 7 Jul 2021 22:45:41 +0000 (00:45 +0200)
committerHartmut Goebel <h.goebel@crazy-compilers.com>
Fri, 16 Jul 2021 17:36:11 +0000 (19:36 +0200)
commitccdf7b8006bd5173cd8ff7d2fe732fc171d38f5d
tree580aee1af00db61eb6ea86f4b7d3e8d34fc8520c
parentf3b20baa4d1375d053bcadd9b804f52556142656
substitutes: Properly construct URLs.

Use relative URIs and "resolve-uri-reference" (which implements the algorithm
specified in RFC 3986 section 5.2.2) for building the URL, instead of just
appending strings. This avoids issued if the cache-url ends with a slash.

* guix/substitutes.scm (narinfo-request): Use resolve-uri-reference for
  constructing the url.
guix/substitutes.scm