mirror of
https://github.com/kataras/iris.git
synced 2026-01-10 13:35:59 +00:00
minor improvements
This commit is contained in:
@@ -30,7 +30,7 @@ func readBody(ctx iris.Context) {
|
||||
var p payload
|
||||
|
||||
// Bind request body to "p" depending on the content-type that client sends the data,
|
||||
// e.g. JSON, XML, YAML, MessagePack, Form, URL Query.
|
||||
// e.g. JSON, XML, YAML, MessagePack, Protobuf, Form and URL Query.
|
||||
err := ctx.ReadBody(&p)
|
||||
if err != nil {
|
||||
ctx.StopWithProblem(iris.StatusBadRequest,
|
||||
|
||||
Reference in New Issue
Block a user