1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-26 21:35:56 +00:00

support multi-level subdomains redirect, see previous commit for the SubdomainRedirect fast solution

Former-commit-id: bc5749e46d1ae65f9d17063f3d8f2ea72510a9d8
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-20 14:54:04 +02:00
parent e176ff7b0c
commit 25918427bc
5 changed files with 12 additions and 5 deletions

View File

@@ -705,7 +705,7 @@ var ErrServerClosed = http.ErrServerClosed
// `Listener`, `Server`, `Addr`, `TLS`, `AutoTLS` and `Raw`.
func (app *Application) Run(serve Runner, withOrWithout ...Configurator) error {
// first Build because it doesn't need anything from configuration,
// this give the user the chance to modify the router inside a configurator as well.
// this gives the user the chance to modify the router inside a configurator as well.
if err := app.Build(); err != nil {
return errors.PrintAndReturnErrors(err, app.logger.Errorf)
}