parse-multipart-data icon indicating copy to clipboard operation
parse-multipart-data copied to clipboard

Newline logic only matches `\r\n` and not `\n` alone

Open kentcdodds opened this issue 4 years ago • 3 comments

Unless I'm mistaken, this means this package won't work on non-windows-based platforms.

kentcdodds avatar Jul 14 '21 17:07 kentcdodds

It works fine on Linux (Pop-os latest Ubuntu)

joel-chu avatar Apr 07 '22 11:04 joel-chu

Can verify. I had to use \r\n EoL when writing tests

jorgenbs avatar Aug 16 '22 11:08 jorgenbs

This issue is rather old, but if I'm not mistaken the \r\n line endings are part of the multipart/form-data specification and that's why the parser tries to detect them.

jonasgeiler avatar Dec 22 '23 23:12 jonasgeiler