Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
780640d1e7 |
1 changed files with 2 additions and 1 deletions
|
|
@ -497,7 +497,8 @@ func (app *App) makeRedirRoute(redirToPort uint, matcherSet MatcherSet) Route {
|
||||||
if redirToPort != uint(app.httpPort()) &&
|
if redirToPort != uint(app.httpPort()) &&
|
||||||
redirToPort != uint(app.httpsPort()) &&
|
redirToPort != uint(app.httpsPort()) &&
|
||||||
redirToPort != DefaultHTTPPort &&
|
redirToPort != DefaultHTTPPort &&
|
||||||
redirToPort != DefaultHTTPSPort {
|
redirToPort != DefaultHTTPSPort &&
|
||||||
|
redirToPort > 0 {
|
||||||
redirTo += ":" + strconv.Itoa(int(redirToPort))
|
redirTo += ":" + strconv.Itoa(int(redirToPort))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue