mirror of
https://github.com/kataras/iris.git
synced 2026-01-06 03:27:27 +00:00
dependency injection: func (...<T>) iris.Handler can be generated to a simple iris handler if <T> are static dependencies
This commit is contained in:
@@ -454,10 +454,9 @@ func (r Response) Dispatch(ctx *context.Context) {
|
||||
|
||||
ctx.SetLanguage(r.Lang)
|
||||
r.Content = []byte(ctx.Tr(r.Text, r.Object))
|
||||
return
|
||||
} else {
|
||||
r.Content = []byte(r.Text)
|
||||
}
|
||||
|
||||
r.Content = []byte(r.Text)
|
||||
}
|
||||
|
||||
err := dispatchCommon(ctx, r.Code, r.ContentType, r.Content, r.Object, defaultResultHandler, true)
|
||||
|
||||
Reference in New Issue
Block a user