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

View File

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