Compare commits
1 Commits
v2023.4.6-
...
v2023.4.6-
Author | SHA1 | Date | |
---|---|---|---|
253c93dbac |
@ -178,7 +178,7 @@ func NewServer(bundle bundle.Bundle, config *spec.Config, handlerOptions ...edge
|
|||||||
func getCookieDomain(r *http.Request) (string, error) {
|
func getCookieDomain(r *http.Request) (string, error) {
|
||||||
host, _, err := net.SplitHostPort(r.Host)
|
host, _, err := net.SplitHostPort(r.Host)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", errors.WithStack(err)
|
host = r.Host
|
||||||
}
|
}
|
||||||
|
|
||||||
// If host is an IP address
|
// If host is an IP address
|
||||||
|
Reference in New Issue
Block a user