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:
6
iris.go
6
iris.go
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user