Skip to content

NOJIRA-Fix-delete-204-no-content#5

Merged
pchero merged 1 commit into
mainfrom
NOJIRA-Fix-delete-204-no-content
Apr 6, 2026
Merged

NOJIRA-Fix-delete-204-no-content#5
pchero merged 1 commit into
mainfrom
NOJIRA-Fix-delete-204-no-content

Conversation

@pchero

@pchero pchero commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Fix crash when DELETE endpoints return 204 No Content with an empty body.
client.delete() called response.json() unconditionally, which raises
json.JSONDecodeError on empty responses. Now returns {} when there is no content.

  • mcp: Handle empty response body in client.delete() for 204 responses
  • mcp: Add test for DELETE 204 No Content case

- mcp: Handle empty response body in client.delete() for 204 responses
- mcp: Add test for DELETE 204 No Content case
@pchero pchero merged commit 125ed36 into main Apr 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant