Skip to content

Commit

Permalink
Fix error on mal formatted json request body
Browse files Browse the repository at this point in the history
  • Loading branch information
G4brym committed Sep 13, 2023
1 parent 4a7381e commit 3d6ec27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export class OpenAPIRoute<I = IRequest, A extends any[] = any[]> {
try {
unvalidatedData['body'] = await request.json()
} catch (e) {
unvalidatedData['body'] = undefined
unvalidatedData['body'] = {}
}
}

Expand Down

0 comments on commit 3d6ec27

Please sign in to comment.