diff --git a/src/utils/body.ts b/src/utils/body.ts index e67e284fa..81fff6a8f 100644 --- a/src/utils/body.ts +++ b/src/utils/body.ts @@ -101,8 +101,8 @@ export const parseBody: ParseBody = async ( const contentType = headers.get('Content-Type') if ( - (contentType !== null && contentType.startsWith('multipart/form-data')) || - (contentType !== null && contentType.startsWith('application/x-www-form-urlencoded')) + contentType?.startsWith('multipart/form-data') || + contentType?.startsWith('application/x-www-form-urlencoded') ) { return parseFormData(request, { all, dot }) }