Unverified Commit e942196c authored by Lee Jae-yeol's avatar Lee Jae-yeol Committed by GitHub
Browse files

Update packages/nestjs/src/fedify.middleware.ts

parent 98007a22
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ function fromERequest(req: ERequest): Request {
    headers,
    // @ts-ignore: duplex is not supported in Deno, but it is in Node.js
    duplex: "half",
    body: req.method === "GET" || req.method === "HEAD" ? undefined : req.body,
    body: req.method === "GET" || req.method === "HEAD" ? undefined : (req.body && typeof req.body === 'object' && !Buffer.isBuffer(req.body) ? JSON.stringify(req.body) : req.body),
  });
}