Skip to content

Removes the 2mb maxDataSize limitation#368

Merged
alexindigo merged 3 commits intoform-data:masterfrom
debajitr:removing-2mb-limitation
Aug 24, 2017
Merged

Removes the 2mb maxDataSize limitation#368
alexindigo merged 3 commits intoform-data:masterfrom
debajitr:removing-2mb-limitation

Conversation

@debajitr
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread lib/form_data.js Outdated
this._valuesToMeasure = [];

CombinedStream.call(this);
Object.assign(this, CombinedStream.create(options));
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I can see Object.assign is failing builds do you want me to use util._extend, or write a util function to do it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just copy same loop from https://github.com/felixge/node-combined-stream/blob/master/lib/combined_stream.js#L22-L25

Also, I'd keep using CombinedStream.call(this); and would add that options loop after that.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, makes sense. Done

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 23, 2017

Coverage Status

Coverage increased (+0.06%) to 98.052% when pulling dc171c3 on debajitr:removing-2mb-limitation into 9bfb102 on form-data:master.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 24, 2017

Coverage Status

Coverage decreased (-0.5%) to 97.525% when pulling f6854ed on debajitr:removing-2mb-limitation into 9bfb102 on form-data:master.

@alexindigo
Copy link
Copy Markdown
Member

Cool. Thanks a lot. Do you mind to throw in extra test for the use case we've covered here – to make coveralls happy? :) Thank you.

@debajitr
Copy link
Copy Markdown
Contributor Author

Added tests, please have a look.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 24, 2017

Coverage Status

Coverage increased (+0.03%) to 98.02% when pulling 61762f2 on debajitr:removing-2mb-limitation into 9bfb102 on form-data:master.

@alexindigo
Copy link
Copy Markdown
Member

Perfect, thanks. Will publish updated version later today.

@alexindigo alexindigo merged commit 028c21e into form-data:master Aug 24, 2017
@debajitr
Copy link
Copy Markdown
Contributor Author

That would be great. Thanks a lot for the support :)

@debajitr debajitr deleted the removing-2mb-limitation branch August 24, 2017 14:38
@alexindigo
Copy link
Copy Markdown
Member

Published as 2.3.1
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants