From 9d08139f4363d3503398002bc82cb3746e3438cf Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sun, 23 Sep 2018 21:02:26 -0700 Subject: Improve request package and add more unit tests --- ui/proxy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/proxy.go') diff --git a/ui/proxy.go b/ui/proxy.go index 68e4db0..553dcce 100644 --- a/ui/proxy.go +++ b/ui/proxy.go @@ -27,7 +27,7 @@ func (c *Controller) ImageProxy(w http.ResponseWriter, r *http.Request) { return } - encodedURL := request.Param(r, "encodedURL", "") + encodedURL := request.RouteStringParam(r, "encodedURL") if encodedURL == "" { html.BadRequest(w, errors.New("No URL provided")) return -- cgit v1.2.3