mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-17 22:48:35 +00:00
32fdb9e60e
- Add 'headers': [] to all Request(scope={'type': 'http'}) instances in test_jwt.py
- Fixes KeyError: 'headers' when accessing request.headers in user_api_key_auth
- All 7 previously failing tests now pass:
- test_allow_access_by_email (2 variants)
- test_allowed_routes_admin (4 variants)
- test_team_token_output (2 variants)
The Starlette Request object requires 'headers' key in scope dictionary
when accessing request.headers property.