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/static_javascript.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ui/static_javascript.go') diff --git a/ui/static_javascript.go b/ui/static_javascript.go index c52251c..248fae3 100644 --- a/ui/static_javascript.go +++ b/ui/static_javascript.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/ui" import ( "net/http" @@ -16,7 +16,7 @@ import ( // Javascript renders application client side code. func (c *Controller) Javascript(w http.ResponseWriter, r *http.Request) { - filename := request.Param(r, "name", "app") + filename := request.RouteStringParam(r, "name") if _, found := static.Javascripts[filename]; !found { html.NotFound(w) return -- cgit v1.2.3