From 8325ed086c99920f63d9b916644774e4e295eab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Tue, 6 Feb 2024 08:40:32 +0100 Subject: [PATCH] update queryParser config --- docs/api/ctx.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/docs/api/ctx.md b/docs/api/ctx.md index 2c3244926f..f1121b7630 100644 --- a/docs/api/ctx.md +++ b/docs/api/ctx.md @@ -1387,9 +1387,13 @@ app.Get("/", func(c *fiber.Ctx) error { return err } - log.Println(p.Name) // john - log.Println(p.Pass) // doe - log.Println(p.Products) // [shoe, hat] + log.Println(p.Name) // john + log.Println(p.Pass) // doe + // fiber.Config{EnableSplittingOnParsers: false} - default + log.Println(p.Products) // ["shoe,hat"] + // fiber.Config{EnableSplittingOnParsers: true} + // log.Println(p.Products) // ["shoe", "hat"] + // ... }) @@ -1398,6 +1402,10 @@ app.Get("/", func(c *fiber.Ctx) error { // curl "http://localhost:3000/?name=john&pass=doe&products=shoe,hat" ``` +:::info +For more parser settings please look here [Config](fiber.md#Config) +::: + ## Range A struct containing the type and a slice of ranges will be returned.