Skip to content

Commit

Permalink
Read length of buffer directly (#1147)
Browse files Browse the repository at this point in the history
Co-authored-by: bergur <bergur@bergur.is>
  • Loading branch information
tryggingamidstodin and bergur committed Jun 1, 2021
1 parent 95fa71f commit 290e3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export class Server extends EventEmitter {

// request body is already provided by an express middleware
// in this case unzipping should also be done by the express middleware itself
if (req.body && Object.keys(req.body).length > 0) {
if (req.body && req.body.length > 0) {
return this._processRequestXml(req, res, req.body.toString());
}

Expand Down

0 comments on commit 290e3c1

Please sign in to comment.