move stream mode to query parameter (#1089)

This commit is contained in:
Henry Ruhs
2026-05-11 16:36:23 +02:00
committed by henryruhs
parent fda6b7f69d
commit a8db033033
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'