From 7c62d502c5fb2b8cc23caa343ea4c3135db5d1d4 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Mon, 15 Mar 2021 17:15:30 +0100 Subject: [PATCH] return http 201 StatusCreated when restoring files from trashbin --- internal/http/services/owncloud/ocdav/trashbin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/services/owncloud/ocdav/trashbin.go b/internal/http/services/owncloud/ocdav/trashbin.go index 2fa53bd9c7..c97353c76f 100644 --- a/internal/http/services/owncloud/ocdav/trashbin.go +++ b/internal/http/services/owncloud/ocdav/trashbin.go @@ -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