contains missing host port
This commit is contained in:
parent
5374896ed0
commit
e8a86585da
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user