Skip to content

Commit dc171c3

Browse files
authored
Removes the 2mb maxDataSize limitation
1 parent 9bfb102 commit dc171c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/form_data.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ util.inherits(FormData, CombinedStream);
2222
*
2323
* @constructor
2424
*/
25-
function FormData() {
25+
function FormData(options) {
2626
if (!(this instanceof FormData)) {
2727
return new FormData();
2828
}
@@ -31,7 +31,7 @@ function FormData() {
3131
this._valueLength = 0;
3232
this._valuesToMeasure = [];
3333

34-
CombinedStream.call(this);
34+
Object.assign(this, CombinedStream.create(options));
3535
}
3636

3737
FormData.LINE_BREAK = '\r\n';

0 commit comments

Comments
 (0)