Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
codekeyz committed Nov 5, 2024
1 parent b07a102 commit f765b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/pharaoh/lib/src/middleware/body_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ bodyParser(Request req, Response res, NextFunction next) async {
req.body = Uri.splitQueryString(Uri.decodeFull(body));
break;
case MimeType.applicationJson:
req.body = json.decode(body);
if (body.isNotEmpty) req.body = json.decode(body);
break;
case MimeType.textPlain:
req.body = body;
Expand Down

0 comments on commit f765b7d

Please sign in to comment.