소스 검색

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 년 전
부모
커밋
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…
취소
저장