internal: fix Error element definition

This commit is contained in:
Simon Ser
2020-01-17 14:47:10 +01:00
parent 7cb302246b
commit 883dafaf41
2 changed files with 18 additions and 13 deletions

View File

@@ -98,7 +98,6 @@ func (h *Handler) handlePropfind(w http.ResponseWriter, r *http.Request) error {
depth := DepthInfinity
if s := r.Header.Get("Depth"); s != "" {
var err error
depth, err = ParseDepth(s)
if err != nil {
return &HTTPError{http.StatusBadRequest, err}