Skip to content

Conversation

@nerzhulart
Copy link
Contributor

@nerzhulart nerzhulart commented Dec 5, 2025

Motivation and Context

#450

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Copilot AI review requested due to automatic review settings December 5, 2025 16:13
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #450 by correcting the content type validation in the SSE server transport. The change updates the equality check to use the proper content type matching method, which handles content type parameters correctly (such as charset specifications).

Key Changes:

  • Updated content type validation to use match() instead of direct equality comparison

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@kpavlov kpavlov force-pushed the n500/450-fix-content-type-check branch from 8e06fad to 52300c3 Compare December 8, 2025 12:20
Copilot AI review requested due to automatic review settings December 8, 2025 15:25
@kpavlov kpavlov force-pushed the n500/450-fix-content-type-check branch from 52300c3 to 61fc03d Compare December 8, 2025 15:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@kpavlov kpavlov merged commit d539c96 into modelcontextprotocol:main Dec 8, 2025
4 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.

3 participants