Title: fix: send Origin header for streamable HTTP by he-yufeng · Pull Request #2731 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: fix: send Origin header for streamable HTTP by he-yufeng · Pull Request #2731 · modelcontextprotocol/python-sdk
X Title: fix: send Origin header for streamable HTTP by he-yufeng · Pull Request #2731 · modelcontextprotocol/python-sdk
Description: Fixes #2727. Summary derive an Origin header from the streamable HTTP endpoint for client requests keep a caller-provided Origin on custom httpx.AsyncClient headers cover the default and custom-Origin paths in streamable HTTP client tests To verify uv run pytest tests/shared/test_streamable_http.py -q uv run ruff check src/mcp/client/streamable_http.py tests/shared/test_streamable_http.py uv run ruff format --check src/mcp/client/streamable_http.py tests/shared/test_streamable_http.py uv run pyright src/mcp/client/streamable_http.py tests/shared/test_streamable_http.py python -m py_compile src\mcp\client\streamable_http.py tests\shared\test_streamable_http.py
Open Graph Description: Fixes #2727. Summary derive an Origin header from the streamable HTTP endpoint for client requests keep a caller-provided Origin on custom httpx.AsyncClient headers cover the default and custom-Or...
X Description: Fixes #2727. Summary derive an Origin header from the streamable HTTP endpoint for client requests keep a caller-provided Origin on custom httpx.AsyncClient headers cover the default and custom-Or...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2731
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:d4c46437-5fd1-f060-fb2b-ef9b47b622fc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D694:2DBF60:7BDF48:A72893:6A5A81CB |
| html-safe-nonce | 1ffd20dd6a4590955ce5e3d7d545c7b077834ff72f9d9c8026918999e10cce65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjk0OjJEQkY2MDo3QkRGNDg6QTcyODkzOjZBNUE4MUNCIiwidmlzaXRvcl9pZCI6Ijc5ODIxMTMxODQyODY0MDkxNjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 487ad61f33d5ed083944c1585bb530748c8e3d5c5a2603e5436fd8b8720f3ed2 |
| hovercard-subject-tag | pull_request:3774149863 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2731/files |
| twitter:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/40085740?s=400&v=4 |
| og:image:alt | Fixes #2727. Summary derive an Origin header from the streamable HTTP endpoint for client requests keep a caller-provided Origin on custom httpx.AsyncClient headers cover the default and custom-Or... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c8a44665d760d73ead7e85d8f88b299152aa681 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width