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

This commit is contained in:
wpetit 2023-04-06 11:00:35 +02:00
parent d2f865ccbb
commit 253c93dbac
1 changed files with 1 additions and 1 deletions

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