-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
An error occurred when the url variable parameter was used with c.bind(slice) #1638
Closed
3 tasks done
Comments
The echo version returns to 4.0.0 and works normally |
fixed this problem for me:
|
Thank you |
Can confirm that this bug is in
Result:
@lammel could you have a look? |
@elissa2333 could you reopen this issue? |
I think there is a similar issue open concering struct binding. |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue Description
An error occurred when the url variable parameter was used with c.bind(slice)
Checklist
Expected behaviour
The binding result is consistent with the fixed url
Actual behaviour
raise error: binding element must be a struct
Steps to reproduce
pass:
curl -X POST -H "Content-Type: application/json" -d '[{"id":2333}]' localhost:1323/a
fail:
curl -X POST -H "Content-Type: application/json" -d '[{"id":2333}]' localhost:1323/b
Working code to debug
Version/commit
github.com/labstack/echo/v4 v4.1.17
The text was updated successfully, but these errors were encountered: