Skip to content

Commit 0e67fb5

Browse files
committed
Use URLSearchParams for paramsSerializer
1 parent 4a62b95 commit 0e67fb5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/seam/connect/axios.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const createAxiosClient = (
1515
return axios.create({
1616
baseURL: options.endpoint,
1717
withCredentials: isSeamHttpOptionsWithClientSessionToken(options),
18-
...(paramsSerializer != null ? { paramsSerializer } : {}),
18+
paramsSerializer: (params) => new URLSearchParams(params).toString(),
1919
...options.axiosOptions,
2020
headers: {
2121
...getAuthHeaders(options),
@@ -24,5 +24,3 @@ export const createAxiosClient = (
2424
},
2525
})
2626
}
27-
28-
const paramsSerializer = axios.defaults.paramsSerializer

0 commit comments

Comments
 (0)