From 9a5f16924c16afb018098d389236c693faa4eba9 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Wed, 17 May 2017 17:30:21 +0200 Subject: use Hostname() instead of Host which will contain the port (#6429) --- utils/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'utils/utils.go') diff --git a/utils/utils.go b/utils/utils.go index 038f6ab61..d158f540f 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -73,5 +73,6 @@ func GetSiteName(siteURL string) string { if err != nil { return "" } - return u.Host + + return u.Hostname() } -- cgit v1.2.3-1-g7c22