mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-20 08:23:47 +00:00
The _safe_get_request_headers caching uses request.state._cached_headers, which returns a truthy MagicMock on bare MagicMock() objects instead of None, breaking content-type detection for form-data tests.