Skip to content

Commit

Permalink
check for pipe method only
Browse files Browse the repository at this point in the history
See discussion here - form-data/form-data#150 (comment)
  • Loading branch information
floatdrop committed Oct 28, 2015
1 parent 32d9077 commit 5205e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function asCallback(opts, cb) {
var ee = requestAsEventEmitter(opts);

ee.on('request', function (req) {
if (isStream.readable(opts.body)) {
if (isStream(opts.body)) {
opts.body.pipe(req);
opts.body = undefined;
return;
Expand Down

0 comments on commit 5205e72

Please sign in to comment.