mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
test(proxy): cover a websocket bearer token with extra whitespace
The master-key acceptance test now also sends the key after a double space, so dropping the strip on the bearer token, or keeping its prefix, fails a test
This commit is contained in:
parent
4147d2a55d
commit
d3e4eaff0c
1 changed files with 1 additions and 0 deletions
|
|
@ -8612,6 +8612,7 @@ async def test_websocket_auth_without_master_key_accepts_a_keyless_client(header
|
|||
"headers",
|
||||
[
|
||||
pytest.param({"authorization": "Bearer sk-master-key"}, id="bearer token"),
|
||||
pytest.param({"authorization": "Bearer sk-master-key"}, id="bearer token with extra space"),
|
||||
pytest.param({"api-key": "sk-master-key"}, id="api-key header"),
|
||||
pytest.param(
|
||||
{"sec-websocket-protocol": "realtime, openai-insecure-api-key.sk-master-key"},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue