♻️ Refactor: change string function to c.app.getString fucntion

Co-authored-by: cmd777 <83428931+cmd777@users.noreply.github.com>
pull/2475/head
Iliya 2023-06-01 00:13:33 +03:30 committed by GitHub
parent 4c30fc5bb6
commit 28febf9e60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
ctx.go
View File

@ -1058,7 +1058,7 @@ func (c *Ctx) Query(key string, defaultValue ...string) string {
func (c *Ctx) Queries() map[string]string {
m := make(map[string]string, c.Context().QueryArgs().Len())
c.Context().QueryArgs().VisitAll(func(key, value []byte) {
m[string(key)] = string(value)
m[c.app.getString(key)] = c.app.getString(value)
})
return m