Skip to content

Commit bb6f95a

Browse files
committed
skip empty data
1 parent e46b6eb commit bb6f95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils-hoist/requestdata.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ export function httpRequestToRequestData(request: {
474474

475475
// This is non-standard, but may be sometimes set
476476
// It may be overwritten later by our own body handling
477-
const data = (request as PolymorphicRequest).body;
477+
const data = (request as PolymorphicRequest).body || undefined;
478478

479479
// This is non-standard, but may be set on e.g. Next.js or Express requests
480480
const cookies = (request as PolymorphicRequest).cookies;

0 commit comments

Comments
 (0)