Remove authentication type edge case in streaming init

This commit is contained in:
Michcio 2022-09-25 17:21:52 +02:00
parent f0b0e46e45
commit 12dd7deac5

View file

@ -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 => {