mirror of
https://github.com/1f349/go-webdav.git
synced 2024-12-22 08:14:15 +00:00
carddav: return HTTP 501 error instead of panicing
This commit is contained in:
parent
12d8b4bf62
commit
20fad80dff
@ -720,11 +720,11 @@ func (b *backend) Mkcol(r *http.Request) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (b *backend) Copy(r *http.Request, dest *internal.Href, recursive, overwrite bool) (created bool, err error) {
|
func (b *backend) Copy(r *http.Request, dest *internal.Href, recursive, overwrite bool) (created bool, err error) {
|
||||||
panic("TODO")
|
return false, internal.HTTPErrorf(http.StatusNotImplemented, "carddav: Copy not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *backend) Move(r *http.Request, dest *internal.Href, overwrite bool) (created bool, err error) {
|
func (b *backend) Move(r *http.Request, dest *internal.Href, overwrite bool) (created bool, err error) {
|
||||||
panic("TODO")
|
return false, internal.HTTPErrorf(http.StatusNotImplemented, "carddav: Move not implemented")
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tools.ietf.org/rfcmarkup?doc=6352#section-6.3.2.1
|
// https://tools.ietf.org/rfcmarkup?doc=6352#section-6.3.2.1
|
||||||
|
Loading…
Reference in New Issue
Block a user