Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: modelcontextprotocol/java-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
Loading
...
head repository: chaoice/java-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: patch-1
Choose a head ref
Loading
Checking mergeability… Don’t worry, you can still create the pull request.
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Apr 2, 2025

  1. Update HttpClientSseClientTransport.java

    fix: switch HttpClient to HTTP/1.1 to prevent body loss with Python servers
    
    This change modifies the HttpClient configuration to explicitly use HTTP_1_1 instead 
    of the default HTTP_2, resolving a critical compatibility issue with Python-based 
    servers (uvicorn/starlette) that cannot properly handle HTTP/2 upgrade requests with 
    bodies.
    
    The issue occurs because:
    1. Java's HttpClient attempts to upgrade to HTTP/2 (h2c) while simultaneously 
       sending request bodies
    2. Python servers (particularly with HttpToolsProtocol) prioritize protocol upgrade 
       handling, causing the body parsing to be skipped or interrupted
    3. This results in request bodies being lost during transmission
    chaoice authored Apr 2, 2025
    Configuration menu
    Copy the full SHA
    27523d3 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2025

  1. Configuration menu
    Copy the full SHA
    167e317 View commit details
    Browse the repository at this point in the history
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.