mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 18:46:19 +01:00
see previous commit for more details
Former-commit-id: e88246203ffc492ffa39e8d20ed19cac7abd52c2
This commit is contained in:
parent
f05ee872d0
commit
39b180b14c
|
@ -90,7 +90,7 @@ func convertTmplToHandler(tmpl *macro.Template) context.Handler {
|
||||||
}
|
}
|
||||||
|
|
||||||
// first, check for type evaluator.
|
// first, check for type evaluator.
|
||||||
newValue, passed := p.TypeEvaluator(ctx.Parms().Get(p.Name))
|
newValue, passed := p.TypeEvaluator(ctx.Params().Get(p.Name))
|
||||||
if !passed {
|
if !passed {
|
||||||
ctx.StatusCode(p.ErrCode)
|
ctx.StatusCode(p.ErrCode)
|
||||||
ctx.StopExecution()
|
ctx.StopExecution()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user