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

fix(sip-invite) do not send query params on sip invite request
This commit is contained in:
Avram Tudor 2021-04-13 13:37:10 +03:00 committed by GitHub
commit 58be0f6914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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