Skip to content

Commit f38dd03

Browse files
committed
fix: handle FormData body
1 parent 89265ec commit f38dd03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/body.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export function readRawBody<E extends Encoding = "utf8">(
9292
}
9393
// TODO: Handle other BodyInit types
9494
// https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#body
95-
if (_resolved instanceof URLSearchParams) {
95+
if (_resolved instanceof URLSearchParams || _resolved instanceof FormData) {
9696
return Buffer.from(_resolved.toString());
9797
}
9898
return Buffer.from(_resolved);

0 commit comments

Comments
 (0)