From 253c93dbac75f7c1a42fa3d27d08184c95a37b63 Mon Sep 17 00:00:00 2001 From: William Petit Date: Thu, 6 Apr 2023 11:00:35 +0200 Subject: [PATCH] fix(module,app): handle host without port in cookie domain identification --- internal/agent/controller/app/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/agent/controller/app/server.go b/internal/agent/controller/app/server.go index df34bcf..f22824b 100644 --- a/internal/agent/controller/app/server.go +++ b/internal/agent/controller/app/server.go @@ -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