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
arcad/emissary/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
d2f865ccbb
commit
253c93dbac
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue