diff options
author | Loïc Hoguin <[email protected]> | 2014-02-19 18:56:50 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2014-02-19 18:56:50 +0100 |
commit | 943d80e7ec4eaf57a8a47b60d357ec35cb336d8a (patch) | |
tree | ced5fcabcd2e2316366b3261e546c311f443652f /README.md | |
parent | 5bc352df0cb2010b697179d8a25d2282db03c1e3 (diff) | |
download | cowlib-943d80e7ec4eaf57a8a47b60d357ec35cb336d8a.tar.gz cowlib-943d80e7ec4eaf57a8a47b60d357ec35cb336d8a.tar.bz2 cowlib-943d80e7ec4eaf57a8a47b60d357ec35cb336d8a.zip |
Fix bugs in cow_multipart:parse_body/2 when a partial was found at the end
There was three bugs: lack of a scope argument in binary:match (I swear
I had it in a previous version, whoops!); a misinterpretation of
the returned position when the scope is used (so yeah it wouldn't
have worked either way); \r\n being incorrectly removed when
we got a partial, despite not knowing whether it was a boundary.
Added a series of different tests to ensure that it all works as intended.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions