From 91fe4f5ca4ce1360a7c66ddbbbbc914366251784 Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 5 Sep 2024 00:18:41 +0530 Subject: [PATCH] fix(http): bracket format for arrays in query strings doesn't work properly with php --- lib/http/Http.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/http/Http.ts b/lib/http/Http.ts index bad0f31d..4f1d3f97 100644 --- a/lib/http/Http.ts +++ b/lib/http/Http.ts @@ -81,10 +81,7 @@ export class Http { const xsrfToken = ['POST', 'PUT', 'PATCH', 'DELETE'].includes(method || '') && (await this.ensureXsrfToken()) - const queryString = stringify( - { ...params, ...query }, - { arrayFormat: 'brackets', encodeValuesOnly: true } - ) + const queryString = stringify({ ...params, ...query }, { encodeValuesOnly: true }) return [ `${url}${queryString ? `?${queryString}` : ''}`,