You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 83c796c
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: add deprecation path for validateHeaders API
Instead of a breaking change, introduce a deprecation path:
- Keep validateHeaders(Map) as deprecated default method that bridges
to the new validateHeaders(Function) via case-insensitive lookup
- New implementations override validateHeaders(Function) for efficiency
- Transport providers continue calling validateHeaders(Map) for backward
compatibility with existing custom implementations
- Restore HttpServletRequestUtils for header extraction in transports
- Add tests for deprecated Map-based API and interface bridge behavior
Copy file name to clipboardExpand all lines: mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletSseServerTransportProvider.java
Copy file name to clipboardExpand all lines: mcp-core/src/main/java/io/modelcontextprotocol/server/transport/HttpServletStreamableServerTransportProvider.java
Copy file name to clipboardExpand all lines: mcp-core/src/test/java/io/modelcontextprotocol/server/transport/DefaultServerTransportSecurityValidatorTests.java
0 commit comments