aboutsummaryrefslogtreecommitdiff
path: root/mediaapi
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-12-18 15:29:27 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2019-12-18 15:29:27 +0000
commitf392ce8ed744654c25f9ea58ed609db8edb25b68 (patch)
tree8c6ccd535fbd9ab266bbdd87439b772cb90bdf71 /mediaapi
parent9b5d6c9745bf8cb1c5a2057ee6218640c82e5250 (diff)
URL decode args
Diffstat (limited to 'mediaapi')
-rw-r--r--mediaapi/routing/routing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediaapi/routing/routing.go b/mediaapi/routing/routing.go
index 3a8cb9ca..0f226664 100644
--- a/mediaapi/routing/routing.go
+++ b/mediaapi/routing/routing.go
@@ -99,7 +99,7 @@ func makeDownloadAPI(
util.SetCORSHeaders(w)
// Content-Type will be overridden in case of returning file data, else we respond with JSON-formatted errors
w.Header().Set("Content-Type", "application/json")
- vars := mux.Vars(req)
+ vars, _ := common.URLDecodeMapValues(mux.Vars(req))
Download(
w,
req,