forked from FoundKeyGang/FoundKey
Remove authentication type edge case in streaming init
This commit is contained in:
parent
f0b0e46e45
commit
12dd7deac5
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@ export const initializeStreamingServer = (server: http.Server): void => {
|
|||
|
||||
ws.on('request', async (request): Promise<void> => {
|
||||
const q = request.resourceURL.query as ParsedUrlQuery;
|
||||
if (q.i instanceof Array) {
|
||||
request.reject(400);
|
||||
return;
|
||||
}
|
||||
|
||||
const [user, app] = await authenticate(request.httpRequest.headers.authorization, q.i)
|
||||
.catch(err => {
|
||||
|
|
Loading…
Reference in a new issue