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/feed_icon.go | |
parent | 844680e57328034c20a2d2b84bd315b55fee9e23 (diff) |
Improve request package and add more unit tests
Diffstat (limited to 'ui/feed_icon.go')
-rw-r--r-- | ui/feed_icon.go | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/feed_icon.go b/ui/feed_icon.go index c5a7414..0aa7089 100644 --- a/ui/feed_icon.go +++ b/ui/feed_icon.go @@ -15,12 +15,7 @@ import ( // ShowIcon shows the feed icon. func (c *Controller) ShowIcon(w http.ResponseWriter, r *http.Request) { - iconID, err := request.IntParam(r, "iconID") - if err != nil { - html.BadRequest(w, err) - return - } - + iconID := request.RouteInt64Param(r, "iconID") icon, err := c.store.IconByID(iconID) if err != nil { html.ServerError(w, err) |