mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
chore: ⬆️ Upgrade dependencies
This commit is contained in:
parent
7e44e55b3f
commit
dbde49b9bd
3 changed files with 50 additions and 46 deletions
|
|
@ -421,7 +421,9 @@ async function parseFormData(context: Context): Promise<{
|
|||
const formData = await context.req.formData();
|
||||
const urlparams = new URLSearchParams();
|
||||
const files = new Map<string, File>();
|
||||
for (const [key, value] of [...formData.entries()]) {
|
||||
for (const [key, value] of [
|
||||
...(formData.entries() as IterableIterator<[string, string | File]>),
|
||||
]) {
|
||||
if (Array.isArray(value)) {
|
||||
for (const val of value) {
|
||||
urlparams.append(key, val);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue