…a separate function in commit 6c2014a.
The feed state is also now passed by reference to processPartData, so that the feed state is correctly updated.
Fixed minor typo inherited from original formidable.js source code.
MultipartReader always passes an uninitialized pointer as the userData argument for all callbacks, and a MultipartReader instance's userData cannot be set externally.
Modified MultipartReader to initialize and expose the userData property as in MultipartParser.
When the last boundary was encountered, the onPartEnd and onEnd callbacks were not being called, nor was the parser state set to END.
Modified last boundary handling logic to call these callbacks and set the parser state.
Mirrors a matching fix in formidable.js.