aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_multipart.erl
AgeCommit message (Collapse)Author
2016-06-08Fix #39: Prefer crypto:strong_rand_bytes/1Leo Liu
See also https://github.com/erlang/otp/pull/883
2015-03-12Merge branch 'fix-multipart-bodies-without-headers' of ↵Loïc Hoguin
https://github.com/danielwhite/cowlib
2015-03-12MaintenanceLoïc Hoguin
* Update copyright years. * Update erlang.mk. * Fix triq testing.
2015-03-03Fix parsing of multipart bodies without headersDaniel White
This was discovered while verifying if cow_multipart was a suitable replacement for our existing multipart parser. Our suite for parsing an example from RFC 2046 failed.
2015-01-04Simplify the cow_http_hd codeLoïc Hoguin
Also rename the macros for inline lowercasing to ?LOWER, and move the type detection macros to cow_parse.hrl.
2014-11-06No line break required after close-delimiterMikkel Jensen
RFC 1341 does not specify this and indeed some upload clients (for example Flash) do not terminate the request with line breaks
2014-02-19Fix bugs in cow_multipart:parse_body/2 when a partial was found at the endLoïc Hoguin
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.
2014-02-05Add the cow_multipart module for multipart message parsing and buildingLoïc Hoguin
This is a new implementation that has been measured to be up to 33% faster than the implementation that was in Cowboy.