Permalink
Browse files

Only pipe form if the form is present.

  • Loading branch information...
1 parent 9d21646 commit ea4199e1496caefa1e3e457809707433dd2a53d5 @idralyuk committed May 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/engine/lib/engine/http/request.js
@@ -279,7 +279,7 @@ function sendHttpRequest(client, options, args, start, timings, reqStart, key, c
});
});
- if (args.parts) {
+ if (args.parts && form) {
form.pipe(clientRequest);
timings.send = Date.now() - reqStart;
} else if (args.body) {

0 comments on commit ea4199e

Please sign in to comment.