freesoftwarefactory / parse-multipart

A javascript/nodejs multipart/form-data parser which operates on raw data.
MIT License
48 stars 80 forks source link

Returned buffer is prefixed with cr/lf ([13, 10, ...]) #12

Open ozra opened 6 years ago

ozra commented 6 years ago

I guess this might be the same issue as #11, if so just close this.

At the moment I simply slice(2) the buffer if the two first values are those, but it's not a pretty solution - works as long as I'm working with known files (jpegs, etc.), but with arbitrary files things could get shaky...