We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfb102 commit dc171c3Copy full SHA for dc171c3
1 file changed
lib/form_data.js
@@ -22,7 +22,7 @@ util.inherits(FormData, CombinedStream);
22
*
23
* @constructor
24
*/
25
-function FormData() {
+function FormData(options) {
26
if (!(this instanceof FormData)) {
27
return new FormData();
28
}
@@ -31,7 +31,7 @@ function FormData() {
31
this._valueLength = 0;
32
this._valuesToMeasure = [];
33
34
- CombinedStream.call(this);
+ Object.assign(this, CombinedStream.create(options));
35
36
37
FormData.LINE_BREAK = '\r\n';
0 commit comments