mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-09 15:19:10 +02:00
* fix: OpenAPI request director content-type dispatch and cookie params 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Stringify multipart form values and cookie params for httpx httpx rejects non-string scalars in files= and cookies=. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Add tests for non-string multipart values and cookie stringification 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Consolidate to single httpx.Request construction point Eliminate early returns by using variables for files/data kwargs. All httpx body kwargs accept None, so we set exactly one and pass all to a single Request() call. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Use _query_scalar_to_str for multipart booleans, add tuple passthrough test Reuse existing boolean serialization (true/false not True/False) for multipart form fields. Add test for file-like tuple passthrough. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Normalize media type for dispatch, use OpenAPI serialization for cookies - Strip content-type parameters (e.g. "; charset=utf-8") and lowercase before matching, so variants like "Multipart/Form-Data" match correctly - Use _query_scalar_to_str for cookie values (true/false not True/False) - Add boolean cookie test 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Preserve media-type parameters in Content-Type header Use raw_content_type (with charset etc.) for the outgoing header, normalized form only for dispatch matching. 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * Pass bytes/file-like values directly in multipart, add charset preservation test Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| json_schema_type | ||
| openapi | ||
| __init__.py | ||
| test_async_utils.py | ||
| test_auth.py | ||
| test_cli.py | ||
| test_components.py | ||
| test_docstring_parsing.py | ||
| test_inspect.py | ||
| test_inspect_icons.py | ||
| test_json_schema.py | ||
| test_logging.py | ||
| test_skills.py | ||
| test_tests.py | ||
| test_token_cache.py | ||
| test_typeadapter.py | ||
| test_types.py | ||
| test_version_check.py | ||