Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Dec 13, 2022
1 parent dbb7f39 commit 74caf25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function readBody<T=any> (event: H3Event): Promise<T> {
const form = new URLSearchParams(body);
const parsedForm: Record<string, any> = Object.create(null);
for (const [key, value] of form.entries()) {
if ((key in parsedForm)) {
if (key in parsedForm) {
if (!Array.isArray(parsedForm[key])) {
parsedForm[key] = [parsedForm[key]];
}
Expand Down

0 comments on commit 74caf25

Please sign in to comment.