Sfoglia il codice sorgente

Merge pull request #8994 from jitsi/tavram/fix-query-params

fix(sip-invite) do not send query params on sip invite request
j8
Avram Tudor 4 anni fa
parent
commit
58be0f6914
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4
    1
      react/features/invite/functions.js

+ 4
- 1
react/features/invite/functions.js Vedi File

@@ -827,7 +827,10 @@ export function inviteSipEndpoints( // eslint-disable-line max-params
827 827
         return Promise.resolve();
828 828
     }
829 829
 
830
-    const baseUrl = locationURL.href.toLowerCase().replace(`/${roomName}`, '');
830
+    const baseUrl = Object.assign(new URL(locationURL.toString()), {
831
+        pathname: locationURL.pathname.replace(`/${roomName}`, ''),
832
+        search: ''
833
+    });
831 834
 
832 835
     return fetch(
833 836
        sipInviteUrl,

Loading…
Annulla
Salva