move stream mode to query parameter (#1089)

This commit is contained in:
Henry Ruhs
2026-05-08 19:16:40 +02:00
committed by GitHub
parent 5a81f16142
commit 35e68d17e1
4 changed files with 16 additions and 37 deletions
+11
View File
@@ -0,0 +1,11 @@
from facefusion.apis.api_helper import get_sec_websocket_protocol
def test_get_sec_websocket_protocol() -> None:
scope =\
{
'type': 'websocket',
'headers': [ (b'sec-websocket-protocol', b'access_token.abc') ]
}
assert get_sec_websocket_protocol(scope) == 'access_token.abc'