Skip to content

Commit

Permalink
return http 201 StatusCreated when restoring files from trashbin
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Mar 23, 2021
1 parent 90e090e commit 7c62d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/http/services/owncloud/ocdav/trashbin.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ func (h *TrashbinHandler) restore(w http.ResponseWriter, r *http.Request, s *svc
HandleErrorStatus(&sublog, w, res.Status)
return
}
w.WriteHeader(http.StatusNoContent)
w.WriteHeader(http.StatusCreated)
}

// delete has only a key
Expand Down

0 comments on commit 7c62d50

Please sign in to comment.