Skip to content

Commit 4bde68e

Browse files
committed
Pass options to constructor if not used with new
1 parent 80c8f74 commit 4bde68e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/form_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ util.inherits(FormData, CombinedStream);
2525
*/
2626
function FormData(options) {
2727
if (!(this instanceof FormData)) {
28-
return new FormData();
28+
return new FormData(options);
2929
}
3030

3131
this._overheadLength = 0;

0 commit comments

Comments
 (0)