mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
carddav: use "/.well-known/carddav/" as initial context path in Discover
See RFC 6764 section 6 item 3.
This commit is contained in:
parent
e0764c06a3
commit
987c9eef0b
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user