fix: unpin needs to return 200, not 201

This commit is contained in:
Derrick Hammer 2024-03-29 14:46:54 -04:00
parent 86669d9f08
commit d5575fbf4f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 2 additions and 2 deletions

View File

@ -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) {

View File

@ -709,7 +709,7 @@ paths:
schema:
type: string
responses:
'204':
'200':
description: File deleted
# Debug API