ruby-sdk/test/mcp/server
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Koichi ITO 9b89620257 Fix case-sensitive Accept header comparison
## Motivation and Context

RFC 9110 defines media type comparison as case-insensitive,
but `parse_accept_header` compared types without normalizing case.
This caused `Application/JSON` or `TEXT/Event-Stream` to be rejected
with 406 Not Acceptable.

## How Has This Been Tested?

Added tests for mixed-case Accept headers:

- `Accept: Application/JSON, Text/Event-Stream` succeeds for POST
- `Accept: TEXT/EVENT-STREAM` succeeds for GET SSE

## Breaking Changes

None. This is a bug fix bringing behavior into conformance with RFC 9110.
2026-05-23 21:36:27 +09:00
..
transports Fix case-sensitive Accept header comparison 2026-05-23 21:36:27 +09:00
pagination_test.rb Support pagination per MCP specification 2026-04-18 18:23:30 +09:00