-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Emit buffer for fields #324
base: master
Are you sure you want to change the base?
Conversation
I think a better and more backwards compatible solution would be to add a |
Uhm, I do not follow you. |
You can specify the default character set when you create the |
Additionally regarding the backwards compatibility, while this solution may work for your use case, breaking everyone else's code by adding another parameter to event handlers is not a good idea. If this PR's changes were added as-is, everyone would suddenly be getting a Buffer instead of the |
Yeah, you are absolutely right, I will rewrite this to ensure that the code will not break for everyone. Thanks for the suggestion |
Owever, there should be a config to force the buffer charset. The |
2082523
to
b468ac0
Compare
@mscdex in the end I added a new config. |
Hey @mscdex, I was just wondering if you had the time to review the latest changes I applied |
Feature request #323
When dealing with a third-party tool I noticed that some of the part of the multipart were with a particular charset, and others were with utf-8.
Since busboy assumes that all fields are from the same charset, this leads to an issue when parsing.
I added a raw buffer to the data emitted for the fields to be able to directly work with the Buffer and parse it with the correct charset.