fix(Zulip Node): Remove trailing slash from the url (#6427)

This commit is contained in:
Jon 2023-06-14 15:26:16 +01:00 committed by GitHub
parent 10bb5be542
commit cc1b249d58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ export async function zulipApiRequest(
) {
const credentials = await this.getCredentials('zulipApi');
const endpoint = `${credentials.url}/api/v1`;
const endpoint = `${credentials.url.toString().replace(new RegExp('/$'), '')}/api/v1`;
let options: OptionsWithUri = {
auth: {