use Hostname() instead of Host which will contain the port (#6429)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-05-17 17:30:21 +02:00
коммит произвёл Corey Hulen
родитель 017cd2a957
Коммит 9a5f16924c

Просмотреть файл

@@ -73,5 +73,6 @@ func GetSiteName(siteURL string) string {
if err != nil {
return ""
}
return u.Host
return u.Hostname()
}