From 9a5db93eac874adcd6d553ff218817014ca8db9b Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Thu, 5 Sep 2024 00:47:01 +0530 Subject: [PATCH] fix(http): bracket format for arrays in qs doesn't work properly with php (#551) --- 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}` : ''}`,