Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
fix body-parser middleware stream issue
Browse files Browse the repository at this point in the history
* adjusting solution to pass Travis CI tests

#102
  • Loading branch information
rootd00d committed Feb 17, 2017
1 parent 34884d1 commit 554749e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/protocols/http/passes/forward.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function useRequestBody (forwardReq, opts) {
}

// If body is present, use it as buffer stream
if (body && (typeof(body) === "string" || body instanceof Buffer)) {
if (body && (typeof body === 'string' || body instanceof Buffer)) {
opts.buffer = createBodyStream(body)
}
}
Expand Down

0 comments on commit 554749e

Please sign in to comment.