shaarli / python-shaarli-client

Python3 CLI to interact with a Shaarli instance
https://python-shaarli-client.readthedocs.io/
MIT License
44 stars 10 forks source link

Add support for "204 No content" return when DELETE-ing data #28

Closed virtualtam closed 6 years ago

virtualtam commented 6 years ago

Issue

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.

The client attempts to JSON-decode the response, which fails (unless the --format text flag is used).

Fix

Suggestion: