carddav: use "/.well-known/carddav/" as initial context path in Discover

See RFC 6764 section 6 item 3.
This commit is contained in:
Simon Ser 2022-06-27 09:55:38 +02:00
parent e0764c06a3
commit 987c9eef0b

View File

@ -46,6 +46,7 @@ func Discover(domain string) (string, error) {
} else {
u.Host = fmt.Sprintf("%v:%v", target, addr.Port)
}
u.Path = "/.well-known/carddav"
return u.String(), nil
}