mirror of
https://github.com/kataras/iris.git
synced 2025-12-22 20:37:05 +00:00
NEW: Application#SubdomainRedirect. Example: https://github.com/kataras/iris/blob/master/_examples/subdomains/redirect/main.go
Former-commit-id: d8dd7c426dc9f14c870f103fef703595a2915612
This commit is contained in:
@@ -195,8 +195,8 @@ func ResolvePort(addr string) int {
|
||||
return 80
|
||||
}
|
||||
|
||||
// ResolveScheme returns "https://" if "isTLS" receiver is true,
|
||||
// otherwise "http://".
|
||||
// ResolveScheme returns "https" if "isTLS" receiver is true,
|
||||
// otherwise "http".
|
||||
func ResolveScheme(isTLS bool) string {
|
||||
if isTLS {
|
||||
return SchemeHTTPS
|
||||
|
||||
Reference in New Issue
Block a user