From e8a86585da5d95c047ec1d547001e59ae4e66f99 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Tue, 7 Apr 2020 00:54:27 +0100 Subject: [PATCH] contains missing host port --- api/server/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/server/auth/auth.go b/api/server/auth/auth.go index 13f9d18e..0641115a 100644 --- a/api/server/auth/auth.go +++ b/api/server/auth/auth.go @@ -148,7 +148,7 @@ func namespaceFromRequest(req *http.Request) (string, error) { // fallback to req.Host var err error host, _, err = net.SplitHostPort(req.Host) - if err != nil && err.Error() == "missing port in address" { + if err != nil && strings.Contains(err.Error(), "missing port in address") { host = req.Host } }