fix(http): answer in MessagePack to MessagePack bodies without Accept header (#93) #94
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!94
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/93-http-msgpack-response-follows-msgpack-body"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
msgPackContentNegotiation answered in JSON to clients that post a MessagePack body without an Accept header, so a MessagePack-only client (TotalYmage Unity app) failed with "Unexpected msgpack code 123" (123 is the opening brace of a JSON object).
Key Changes
Verification
Follow-up
Closes #93
🤖 Generated with Claude Code
A client posting a MessagePack body (e.g. Unity) but omitting the `Accept: application/x-msgpack` header received a JSON response it could not decode ("Unexpected msgpack code 123"). The response is now MessagePack when the client asks for it (Accept or ?format=msgpack), or when the request body is MessagePack and Accept does not explicitly ask for JSON (`application/json` or `+json`). Closes #93 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>