updates
This commit is contained in:
@@ -171,9 +171,15 @@ export class Rt {
|
|||||||
if (reqOpts.vars instanceof FormData) {
|
if (reqOpts.vars instanceof FormData) {
|
||||||
|
|
||||||
for (const [key, value] of reqOpts.vars.entries()) {
|
for (const [key, value] of reqOpts.vars.entries()) {
|
||||||
|
|
||||||
|
if (key.endsWith('[]')) {
|
||||||
|
fdata.append(key, value);
|
||||||
|
}
|
||||||
|
else {
|
||||||
fdata.set(key, value);
|
fdata.set(key, value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
Ut.each(reqOpts.vars, (val, key) => fdata.set(key, val));
|
Ut.each(reqOpts.vars, (val, key) => fdata.set(key, val));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user