Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Ctx.Params() always returns lower case string. #392

Closed
hsblhsn opened this issue May 17, 2020 · 1 comment
Closed

🐞 Ctx.Params() always returns lower case string. #392

hsblhsn opened this issue May 17, 2020 · 1 comment

Comments

@hsblhsn
Copy link

hsblhsn commented May 17, 2020

Issue description

app.Get("/foo/:bar", handler)
// ...go
// curl localhost/foo/aBcD
// ...
val := c.Params("bar")
// val is "abcd"

Expected behavior

app.Get("/foo/:bar", handler)
// ...
// curl localhost/foo/aBcD
// ...
val := c.Params("bar")
// val is "aBcD"
@Fenny
Copy link
Member

Fenny commented May 19, 2020

This fix will be shipped in the next release v1.10 I will keep this issue open until it's tagged.
To bypass this issue for now, you could set the CaseSensitive param to true.

app := fiber.New(&fiber.Settings{
  CaseSensitive: true,
})

@thomasvvugt thomasvvugt added this to To do in Development May 22, 2020
@Fenny Fenny mentioned this issue May 23, 2020
@Fenny Fenny closed this as completed May 27, 2020
Development automation moved this from To do to Done May 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development
  
Done
Development

No branches or pull requests

5 participants