Skip to content

Conversation

@RileyNorton
Copy link
Contributor

Allow other header values for the 'Accept' header that imply application/json and text/event-stream for requests to the Streamable HTTP Transport.

Fixes #290

Unit tests here seemed like unnecessary complexity and wouldn't fit cleanly with the style of the streamable_test.go tests. Happy to add those if desired though.

Allow other header values for the 'Accept' header that imply application/json and text/event-stream for requests to the Streamable HTTP Transport.

Fixes modelcontextprotocol#290
Copy link
Contributor

@findleyr findleyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I'll add a test.

@findleyr findleyr merged commit a834f3c into modelcontextprotocol:main Aug 13, 2025
5 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.

'Accept' Content-Types don't support wildcards

2 participants