mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 04:17:03 +00:00
Add a better example for the recaptcha middleware as requested at: https://github.com/kataras/iris/issues/799
Former-commit-id: 85c3286a9d6be5cf47631e7608f70f3790934e64
This commit is contained in:
5
iris.go
5
iris.go
@@ -425,7 +425,10 @@ func (app *Application) NewHost(srv *http.Server) *host.Supervisor {
|
||||
}
|
||||
|
||||
su.IgnoredErrors = append(su.IgnoredErrors, app.config.IgnoreServerErrors...)
|
||||
app.logger.Debugf("Host: server will ignore the following errors: %s", su.IgnoredErrors)
|
||||
if len(su.IgnoredErrors) > 0 {
|
||||
app.logger.Debugf("Host: server will ignore the following errors: %s", su.IgnoredErrors)
|
||||
}
|
||||
|
||||
su.Configure(app.hostConfigurators...)
|
||||
|
||||
app.Hosts = append(app.Hosts, su)
|
||||
|
||||
Reference in New Issue
Block a user