From f81a267628aa76a2e7a4add686025da4eb99e077 Mon Sep 17 00:00:00 2001 From: algolia-bot Date: Fri, 23 Feb 2024 15:23:11 +0000 Subject: [PATCH] chore(javascript): broken tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/algolia/api-clients-automation/pull/2767 Co-authored-by: Clément Vannicatte --- packages/client-common/src/transporter/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client-common/src/transporter/helpers.ts b/packages/client-common/src/transporter/helpers.ts index 0f8c0da86..c53f90ba1 100644 --- a/packages/client-common/src/transporter/helpers.ts +++ b/packages/client-common/src/transporter/helpers.ts @@ -31,7 +31,7 @@ export function serializeUrl( ): string { const queryParametersAsString = serializeQueryParameters(queryParameters); let url = `${host.protocol}://${host.url}${host.port ? `:${host.port}` : ''}/${ - path.charAt(0) === '/' ? path.substr(1) : path + path.charAt(0) === '/' ? path.substring(1) : path }`; if (queryParametersAsString.length) {