updates
This commit is contained in:
+7
-1
@@ -171,7 +171,13 @@ 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()) {
|
||||||
fdata.set(key, value);
|
|
||||||
|
if (key.endsWith('[]')) {
|
||||||
|
fdata.append(key, value);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
fdata.set(key, value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user