-
Notifications
You must be signed in to change notification settings - Fork 48
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
avoid error when json body not object #213
Conversation
Thank you for the PR! The test workflow ( GO:1.20.0 DB:MySQL8.0 Redis:6 ) is running, the results of the run will be commented later. |
Thank you for the PR! The test workflow ( GO:1.20.0 DB:MySQL8.0 Redis:5 ) is running, the results of the run will be commented later. |
Thank you for the PR! The test workflow ( GO:1.20.0 DB:SQLite3 Redis:4 ) is running, the results of the run will be commented later. |
Thank you for the PR! The test workflow ( GO:1.20.0 DB:SQLite3 Redis:6 ) is running, the results of the run will be commented later. |
Thank you for the PR! The test workflow ( GO:1.20.0 DB:MySQL8.0 Redis:4 ) is running, the results of the run will be commented later. |
Thank you for the PR! The test workflow ( GO:1.20.0 DB:SQLite3 Redis:5 ) is running, the results of the run will be commented later. |
✨DONE✨ GO:1.20.0 DB:MySQL8.0 Redis:6 passed. |
✨DONE✨ GO:1.20.0 DB:SQLite3 Redis:6 passed. |
✨DONE✨ GO:1.20.0 DB:SQLite3 Redis:4 passed. |
✨DONE✨ GO:1.20.0 DB:MySQL8.0 Redis:5 passed. |
✨DONE✨ GO:1.20.0 DB:MySQL8.0 Redis:4 passed. |
✨DONE✨ GO:1.20.0 DB:SQLite3 Redis:5 passed. |
thanks |
when content-type is application/json, now the
setPayload
will parse the body asmap[string]interface{}
, but if the body not a json object, but an array or just some simple type, then json unmarshal will be an error.