forked from TrueCloudLab/frostfs-http-gw
[#123] Add url-encoded queries for prefix values
Signed-off-by: Angira Kekteeva <kira@nspcc.ru>
This commit is contained in:
parent
c11b2332f9
commit
9d085740e0
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ func (d *Downloader) searchByAttr(c *fasthttp.RequestCtx, cid *cid.ID, key, val
|
||||||
func (d *Downloader) DownloadZipped(c *fasthttp.RequestCtx) {
|
func (d *Downloader) DownloadZipped(c *fasthttp.RequestCtx) {
|
||||||
status := fasthttp.StatusBadRequest
|
status := fasthttp.StatusBadRequest
|
||||||
scid, _ := c.UserValue("cid").(string)
|
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))
|
log := d.log.With(zap.String("cid", scid), zap.String("prefix", prefix))
|
||||||
|
|
||||||
containerID := cid.New()
|
containerID := cid.New()
|
||||||
|
|
Loading…
Reference in a new issue