We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15a5250 commit 276993aCopy full SHA for 276993a
1 file changed
src/lib/request.ts
@@ -1,7 +1,6 @@
1
import { AxiosInstance } from './types';
2
3
/**
4
- * Serializes parameters to match Postman format
5
* Handles array parameters properly with & separators
6
*/
7
function serializeParams(params: any): string {
@@ -10,12 +9,10 @@ function serializeParams(params: any): string {
10
9
Object.keys(params).forEach(key => {
11
const value = params[key];
12
if (Array.isArray(value)) {
13
- // Handle array parameters like include[]
14
value.forEach(item => {
15
urlParams.append(key, item);
16
});
17
} else {
18
- // Handle all other parameter types
19
urlParams.set(key, value);
20
}
21
0 commit comments