Skip to content

Normalize MCP response Content-Type media type case-insensitively - #79

Open
SirajLuqman wants to merge 1 commit into
prooflinedev:mainfrom
SirajLuqman:fix/mcp-case-insensitive-content-type
Open

SirajLuqman wants to merge 1 commit into
prooflinedev:mainfrom
SirajLuqman:fix/mcp-case-insensitive-content-type

Conversation

@SirajLuqman

Copy link
Copy Markdown

Summary

Normalizes the MCP response Content-Type media type case-insensitively (.lower()) in proofline/_mcp.py per RFC 9110, and adds parameterized sync/async HTTP tests in tests/test_http.py covering mixed-case application/json headers with and without parameters.

Verification

  • Ran set "PYTHONUTF8=1" && python scripts\check.py on Windows 11 (Python 3.14.2); all checks passed (generate.py --check, contracts.py, ruff check, ruff format --check, mypy, pytest, and wheel/sdist build + sync/async install smoke tests).

This branch has not been deployed

No deployments
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.

1 participant