Title: [codex] Add default Origin for streamable HTTP client by tarunag10 · Pull Request #2759 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: [codex] Add default Origin for streamable HTTP client by tarunag10 · Pull Request #2759 · modelcontextprotocol/python-sdk
X Title: [codex] Add default Origin for streamable HTTP client by tarunag10 · Pull Request #2759 · modelcontextprotocol/python-sdk
Description: Summary derive a default Origin from the streamable HTTP target URL send that origin on streamable HTTP requests when the caller has not configured one preserve caller-provided Origin headers and avoid mutating provided httpx.AsyncClient headers Validation uv run pytest tests/shared/test_streamable_http.py -k "default_origin or preserves_custom_origin" uv run pytest tests/shared/test_streamable_http.py 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 Addresses #2727.
Open Graph Description: Summary derive a default Origin from the streamable HTTP target URL send that origin on streamable HTTP requests when the caller has not configured one preserve caller-provided Origin headers and ...
X Description: Summary derive a default Origin from the streamable HTTP target URL send that origin on streamable HTTP requests when the caller has not configured one preserve caller-provided Origin headers and ...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2759
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cfeb70a1-7e3f-2a00-e52c-13ae8c3137ea |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97CE:366B9E:218601:2E442E:6A5A4705 |
| html-safe-nonce | d310f92eb9ae7b33d1df5b1e0a6a44ac7b76385c3e84e0cb5c3c9d020b8d3b38 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0NFOjM2NkI5RToyMTg2MDE6MkU0NDJFOjZBNUE0NzA1IiwidmlzaXRvcl9pZCI6IjcxNzcxNzM1MDM0MTQyNTc0MTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 557afa34b0ee258e6ab9e11732c05a593537840f825ed3ea9e9e63614e64ed45 |
| hovercard-subject-tag | pull_request:3787362287 |
| 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/2759/files |
| twitter:image | https://avatars.githubusercontent.com/u/13286052?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/13286052?s=400&v=4 |
| og:image:alt | Summary derive a default Origin from the streamable HTTP target URL send that origin on streamable HTTP requests when the caller has not configured one preserve caller-provided Origin headers and ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3 |
| 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 | 5aec27bb9c4f7ebe5fbbcd1533a5509e63a570a1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width