We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FormData
1 parent 89265ec commit f38dd03Copy full SHA for f38dd03
src/utils/body.ts
@@ -92,7 +92,7 @@ export function readRawBody<E extends Encoding = "utf8">(
92
}
93
// TODO: Handle other BodyInit types
94
// https://developer.mozilla.org/en-US/docs/Web/API/Response/Response#body
95
- if (_resolved instanceof URLSearchParams) {
+ if (_resolved instanceof URLSearchParams || _resolved instanceof FormData) {
96
return Buffer.from(_resolved.toString());
97
98
return Buffer.from(_resolved);
0 commit comments