mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 10:27:06 +00:00
update to version 8.4.1 ❤️ https://github.com/kataras/iris/blob/master/HISTORY.md#th-07-september-2017--v841
Former-commit-id: 9e5f0a08049b83605aa847b8f51fb856427354a6
This commit is contained in:
@@ -53,6 +53,13 @@ func resolveCaller(p pathInfo) callerFunc {
|
||||
}
|
||||
}
|
||||
|
||||
if p.ParamType == paramTypeBoolean {
|
||||
return func(ctx context.Context, f interface{}) {
|
||||
paramValue, _ := ctx.Params().GetBool(paramName)
|
||||
f.(func(bool))(paramValue)
|
||||
}
|
||||
}
|
||||
|
||||
// else it's string or path, both of them are simple strings.
|
||||
return func(ctx context.Context, f interface{}) {
|
||||
paramValue := ctx.Params().Get(paramName)
|
||||
|
||||
Reference in New Issue
Block a user