From d5575fbf4fd2ea4cb858946aefbffd8d92c49a62 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 29 Mar 2024 14:46:54 -0400 Subject: [PATCH] fix: unpin needs to return 200, not 201 --- api/s5/s5.go | 2 +- api/s5/swagger.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/s5/s5.go b/api/s5/s5.go index 5cf9bbf..703c16e 100644 --- a/api/s5/s5.go +++ b/api/s5/s5.go @@ -943,7 +943,7 @@ func (s *S5API) accountPinDelete(jc jape.Context) { return } - jc.ResponseWriter.WriteHeader(http.StatusNoContent) + jc.ResponseWriter.WriteHeader(http.StatusOK) } func (s *S5API) getManifestCids(ctx context.Context, cid *encoding.CID, addSelf bool) ([]*encoding.CID, error) { diff --git a/api/s5/swagger.yaml b/api/s5/swagger.yaml index 7a948fe..fa38941 100644 --- a/api/s5/swagger.yaml +++ b/api/s5/swagger.yaml @@ -709,7 +709,7 @@ paths: schema: type: string responses: - '204': + '200': description: File deleted # Debug API