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

🐛 fix: same struct parse param failed #2101

Merged
merged 1 commit into from Sep 19, 2022
Merged

🐛 fix: same struct parse param failed #2101

merged 1 commit into from Sep 19, 2022

Conversation

li-jin-gou
Copy link
Contributor

@li-jin-gou li-jin-gou commented Sep 18, 2022

Description

Fixes #2100

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • I have performed a self-review of my own code
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Commit formatting:

Use emojis on commit messages so it provides an easy way of identifying the purpose or intention of a commit. Check out the emoji cheatsheet here: https://gitmoji.carloscuesta.me/

@ReneWerner87
Copy link
Member

Will review it tomorrow

ctx.go Outdated
var decoderPoolMap = map[string]*sync.Pool{}

func init() {
for _, tag := range []string{queryTag, bodyTag, reqHeaderTag, paramsTag} {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please put this list near the constants for it, so that the next person who adds some kind of parser will also directly recognize that this list needs to be extended

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@ReneWerner87 ReneWerner87 merged commit 896b371 into gofiber:master Sep 19, 2022
@welcome
Copy link

welcome bot commented Sep 19, 2022

Congrats on merging your first pull request! 🎉 We here at Fiber are proud of you! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [Bug]: unstable behaviour of ReqHeaderParser/QueryParser methods
2 participants