1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 13:35:59 +00:00

minor improvements

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-31 09:40:27 +03:00
parent 5700690dea
commit 8d99b46801
6 changed files with 66 additions and 49 deletions

View File

@@ -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,