Explorar el Código

fix: Skip header checking for ws and shard when not configured. Fixes #1465.

dev1
damencho hace 5 años
padre
commit
86bc5122a6
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  1. 6
    0
      modules/xmpp/XmppConnection.js

+ 6
- 0
modules/xmpp/XmppConnection.js Ver fichero

@@ -409,6 +409,12 @@ export default class XmppConnection extends Listenable {
409 409
 
410 410
         return fetch(url)
411 411
             .then(response => {
412
+
413
+                // skips header checking if there is no info in options
414
+                if (!shard) {
415
+                    return;
416
+                }
417
+
412 418
                 const responseShard = response.headers.get('x-jitsi-shard');
413 419
 
414 420
                 if (responseShard !== shard) {

Loading…
Cancelar
Guardar