Closed virtualtam closed 6 years ago
See https://github.com/shaarli/Shaarli/pull/1141#issuecomment-395497664
When consuming an endpoint with an HTTP DELETE request, a 204 No content response is returned, with an empty body.
DELETE
204 No content
The client attempts to JSON-decode the response, which fails (unless the --format text flag is used).
--format text
Suggestion:
204
Issue
See https://github.com/shaarli/Shaarli/pull/1141#issuecomment-395497664
When consuming an endpoint with an HTTP
DELETE
request, a204 No content
response is returned, with an empty body.The client attempts to JSON-decode the response, which fails (unless the
--format text
flag is used).Fix
Suggestion:
204
response with an empty body forDELETE
endpoints