From c8bc511e040501046f438c3bb1c65f0d3bf0efa4 Mon Sep 17 00:00:00 2001 From: Nazar Kanaev Date: Wed, 17 Mar 2021 12:19:28 +0000 Subject: [PATCH] oops --- src/router/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/context.go b/src/router/context.go index af9d441..b0157ab 100644 --- a/src/router/context.go +++ b/src/router/context.go @@ -50,7 +50,7 @@ func (c *Context) VarInt64(key string) (int64, error) { func (c *Context) QueryInt64(key string) (int64, error) { query := c.Req.URL.Query() - return strconv.ParseInt(query.Get("page"), 10, 64) + return strconv.ParseInt(query.Get(key), 10, 64) } func (c *Context) Redirect(url string) {