From 9d085740e0bf2448872a7370b0c04e0f338fd8a6 Mon Sep 17 00:00:00 2001 From: Angira Kekteeva Date: Wed, 26 Jan 2022 17:54:10 +0300 Subject: [PATCH] [#123] Add url-encoded queries for prefix values Signed-off-by: Angira Kekteeva --- downloader/download.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/downloader/download.go b/downloader/download.go index e71873e..93aa020 100644 --- a/downloader/download.go +++ b/downloader/download.go @@ -388,7 +388,7 @@ func (d *Downloader) searchByAttr(c *fasthttp.RequestCtx, cid *cid.ID, key, val func (d *Downloader) DownloadZipped(c *fasthttp.RequestCtx) { status := fasthttp.StatusBadRequest scid, _ := c.UserValue("cid").(string) - prefix, _ := c.UserValue("prefix").(string) + prefix, _ := url.QueryUnescape(c.UserValue("prefix").(string)) log := d.log.With(zap.String("cid", scid), zap.String("prefix", prefix)) containerID := cid.New()