aboutsummaryrefslogtreecommitdiff
path: root/processors/request.go
diff options
context:
space:
mode:
Diffstat (limited to 'processors/request.go')
-rw-r--r--processors/request.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/processors/request.go b/processors/request.go
index 173b29d..a3ea20a 100644
--- a/processors/request.go
+++ b/processors/request.go
@@ -8,9 +8,10 @@ import (
func RequestContextProcessor(ctx *fiber.Ctx) error {
queryParams := []config.QueryParam{}
- for k, v := range ctx.Queries() {
- queryParams = append(queryParams, config.QueryParam{Key: k, Value: v})
- }
+ queryArgs := ctx.Request().URI().QueryArgs()
+ queryArgs.VisitAll(func(key, value []byte) {
+ queryParams = append(queryParams, config.QueryParam{Key: string(key), Value: string(value)})
+ })
routeParams := []config.QueryParam{}
for k, v := range ctx.AllParams() {