1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-29 15:57:09 +00:00

context#ReadForm can skip unkown fields by iris/context.IsErrPath(err), fixes: https://github.com/kataras/iris/issues/1157

Former-commit-id: 5cc8e5a9d58071591154e988262b547653c34e36
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-01-04 11:40:55 +02:00
parent 8b74e3343d
commit caac0480ba
5 changed files with 17 additions and 8 deletions

View File

@@ -463,6 +463,12 @@ var (
//
// A shortcut for the `context#CookieDecode`.
CookieDecode = context.CookieDecode
// IsErrPath can be used at `context#ReadForm`.
// It reports whether the incoming error is type of `formbinder.ErrPath`,
// which can be ignored when server allows unknown post values to be sent by the client.
//
// A shortcut for the `context#IsErrPath`.
IsErrPath = context.IsErrPath
)
// SPA accepts an "assetHandler" which can be the result of an