-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No error will be reported for illegal JSON requests #4087
Comments
@lingcoder 唔,因吹斯汀, gf/net/ghttp/ghttp_request_param.go Line 228 in e1fa990
这块有很大的改进空间:
|
@lingcoder Well, because of Sting, There is a lot of room for improvement in this area:
|
Hello @lingcoder. We like your proposal/feedback and would appreciate a contribution via a Pull Request by you or another community member. We thank you in advance for your contribution and are looking forward to reviewing it! |
Go version
go version go1.23.3 windows/amd64
GoFrame version
v2.8.3
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
使用默认的规范路由写法定义controller层出参入参,默认应该是application/json 请求。
前端传递了非法的JSON。gf没有任何错误提醒。
What did you see happen?
request := g.RequestFromCtx(ctx)
fmt.Println(request.GetBodyString())
What did you expect to see?
应该提示参数格式不对吧?
The text was updated successfully, but these errors were encountered: