Преглед изворни кода

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

fix(sip-invite) do not send query params on sip invite request
master
Avram Tudor пре 4 година
родитељ
комит
58be0f6914
No account linked to committer's email address
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4
    1
      react/features/invite/functions.js

+ 4
- 1
react/features/invite/functions.js Прегледај датотеку

@@ -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…
Откажи
Сачувај