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/search_entries.go | |
parent | 844680e57328034c20a2d2b84bd315b55fee9e23 (diff) |
Improve request package and add more unit tests
Diffstat (limited to 'ui/search_entries.go')
-rw-r--r-- | ui/search_entries.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/search_entries.go b/ui/search_entries.go index 3f17ede..e1dcbad 100644 --- a/ui/search_entries.go +++ b/ui/search_entries.go @@ -23,7 +23,7 @@ func (c *Controller) ShowSearchEntries(w http.ResponseWriter, r *http.Request) { return } - searchQuery := request.QueryParam(r, "q", "") + searchQuery := request.QueryStringParam(r, "q", "") offset := request.QueryIntParam(r, "offset", 0) builder := c.store.NewEntryQueryBuilder(user.ID) builder.WithSearchQuery(searchQuery) |