Skip to content

Conversation

@liushuangls
Copy link

mcp/streamable: checking Content-Type header

Issue encountered: the MCP server request was unexpectedly redirected to an HTML page. Because the client didn’t validate the response Content-Type, it still entered handleSSE, which then kept treating the HTML as an SSE stream and repeatedly re-requesting the same page—creating an infinite request loop.

@findleyr
Copy link
Contributor

Thanks for this CL. We're on break now, but I'll review next week.

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.

2 participants