-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🤗 [Question]: v3 bind query and json make a mistake #3253
Comments
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord |
@efectn Any ideas? |
It should be added that json is also passed in the query, for example: url?page=1&size=9&search={keyword:'key'} |
The search parameter is a JSON
When I modified it to the following code
This is the correct return value |
It's my mistake.,After adding the judgment, it leads to no binding json so that it can be executed correctly.,Just use Query to bind correctly. |
Question Description
I'm having an issue when I need to bind both query and json in v3
This is the correct code, but when I remove it
if c.Get("Content-Type") == "application/json"
I'm getting an error:
invalid character '' looking for beginning of value
Code Snippet (optional)
No response
Checklist:
The text was updated successfully, but these errors were encountered: