caldav: add server handling for well-known URLs

This commit is contained in:
Heiko Carrasco 2020-10-09 15:10:33 +02:00 committed by GitHub
parent 9cd3bb51b9
commit 4316bbcd93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,11 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
if r.URL.Path == "/.well-known/carddav" {
http.Redirect(w, r, "/", http.StatusMovedPermanently)
return
}
var err error
switch r.Method {
case "REPORT":