|
@ -44,7 +44,7 @@ func GetDomain(req *http.Request) string { |
|
|
var host string = GetHost(req) |
|
|
var host string = GetHost(req) |
|
|
hosts := strings.Split(host, ":") |
|
|
hosts := strings.Split(host, ":") |
|
|
host = hosts[0] |
|
|
host = hosts[0] |
|
|
if hosts[1] == "443" { |
|
|
|
|
|
|
|
|
if len(hosts) > 1 && hosts[1] == "443" { |
|
|
scheme = "https://" |
|
|
scheme = "https://" |
|
|
} |
|
|
} |
|
|
var w strings.Builder |
|
|
var w strings.Builder |
|
|