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/search_entries.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/search_entries.go') 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) -- cgit v1.2.3