The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8296
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Could be better in the near future to use url.Parse but i will review the code with the integration of the RFC changes.
From e44862532a416041ac6818f197e75f1205319580 Mon Sep 17 00:00:00 2001 From: Daniele Rondina <gea...@sabayonlinux.org> Date: Mon, 4 Jan 2021 13:10:14 +0100 Subject: [PATCH] simplestreams: Drop duplicated slash Signed-off-by: Daniele Rondina <gea...@sabayonlinux.org> --- shared/simplestreams/simplestreams.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/simplestreams/simplestreams.go b/shared/simplestreams/simplestreams.go index 4d623f6eb2..a459eaac00 100644 --- a/shared/simplestreams/simplestreams.go +++ b/shared/simplestreams/simplestreams.go @@ -98,7 +98,7 @@ func (s *SimpleStreams) cachedDownload(path string) ([]byte, error) { } // Download from the source - uri := fmt.Sprintf("%s/%s", s.url, path) + uri := fmt.Sprintf("%s/%s", strings.TrimRight(s.url, "/"), strings.TrimLeft(path, "/")) req, err := http.NewRequest("GET", uri, nil) if err != nil { return nil, err
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel