fix: don't send Content-Type on bodyless DELETE, include full server data in project queries #34

Merged
michal merged 1 commits from fix/delete-content-type-and-project-servers into main 2026-02-23 19:55:36 +00:00
Owner
  • Only set Content-Type: application/json when request body is present (fixes Fastify 400 on empty DELETE)
  • PROJECT_INCLUDE returns full server objects so project server listings show all columns
  • Added DELETE test to api-client.test.ts
- Only set Content-Type: application/json when request body is present (fixes Fastify 400 on empty DELETE) - PROJECT_INCLUDE returns full server objects so project server listings show all columns - Added DELETE test to api-client.test.ts
michal added 1 commit 2026-02-23 19:54:44 +00:00
fix: don't send Content-Type on bodyless DELETE, include full server data in project queries
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / typecheck (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
CI / package (pull_request) Has been cancelled
e4affe5962
- Only set Content-Type: application/json when request body is present (fixes
  Fastify rejecting empty DELETE with "Body cannot be empty" 400 error)
- Changed PROJECT_INCLUDE to return full server objects instead of just {id, name}
  so project server listings show transport, package, image columns

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
michal merged commit 01d3c4e02d into main 2026-02-23 19:55:36 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: michal/mcpctl#34