vafast 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51856,7 +51856,7 @@ async function parseBody(req) {
|
|
|
51856
51856
|
if (contentType.includes("application/json")) {
|
|
51857
51857
|
try {
|
|
51858
51858
|
const body = await req.json();
|
|
51859
|
-
if (body === "" || body === null) {
|
|
51859
|
+
if (body === "" || body === null || typeof body === "object" && Object.keys(body).length === 0) {
|
|
51860
51860
|
return;
|
|
51861
51861
|
}
|
|
51862
51862
|
return body;
|