fix(module,app): handle host without port in cookie domain identification
Some checks reported errors
arcad/emissary/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
wpetit 2023-04-06 11:00:35 +02:00
parent d2f865ccbb
commit 253c93dbac

View File

@ -178,7 +178,7 @@ func NewServer(bundle bundle.Bundle, config *spec.Config, handlerOptions ...edge
func getCookieDomain(r *http.Request) (string, error) {
host, _, err := net.SplitHostPort(r.Host)
if err != nil {
return "", errors.WithStack(err)
host = r.Host
}
// If host is an IP address