You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve UTF-8 encoding issues in HTTP request bodies
- Add charset=utf-8 to Content-Type and Accept headers
- Serialize JSON with ensure_ascii=False for proper UTF-8 encoding
- Fix body size calculation to prevent Content-Length mismatches
- Apply changes to sync HTTP, async HTTP, WebSocket, and form data paths
- Add comprehensive unit and integration tests
This fix reduces request body size by 57.5% for non-ASCII content
(e.g., 12.41MB → 5.27MB for websearch.json test data) and ensures
compatibility with servers that enforce strict body size limits.
Closes issue with large UTF-8 payloads exceeding server limits.
0 commit comments