diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-09-23 21:02:26 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-09-23 21:02:26 -0700 |
commit | 9d08139f4363d3503398002bc82cb3746e3438cf (patch) | |
tree | b09c1efb14445624e4a2771bf8cbcf3a9828ecf9 /ui/static_stylesheet.go | |
parent | 844680e57328034c20a2d2b84bd315b55fee9e23 (diff) |
Improve request package and add more unit tests
Diffstat (limited to 'ui/static_stylesheet.go')
-rw-r--r-- | ui/static_stylesheet.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/static_stylesheet.go b/ui/static_stylesheet.go index de540fe..8e475bd 100644 --- a/ui/static_stylesheet.go +++ b/ui/static_stylesheet.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 ( // Stylesheet renders the CSS. func (c *Controller) Stylesheet(w http.ResponseWriter, r *http.Request) { - stylesheet := request.Param(r, "name", "default") + stylesheet := request.RouteStringParam(r, "name") if _, found := static.Stylesheets[stylesheet]; !found { html.NotFound(w) return |