aboutsummaryrefslogtreecommitdiffstats
path: root/src/cow_multipart.erl
AgeCommit message (Collapse)Author
2018-06-04Update copyrightsLoïc Hoguin
2017-07-10Add new module cow_base64urlLoïc Hoguin
It implements the algorithm found in RFC 7515 Appendix C https://tools.ietf.org/html/rfc7515#appendix-C with an option to switch between with/no padding variants. Relace the cow_multipart:boundary function to use this and fix issues with agents which do not support slashes in the boundary characters.
2017-06-08Accept headers as map in cow_multipart:form_data/1Loïc Hoguin
2017-06-08cow_multipart:from_data/1 doesn't return transfer-encoding anymoreLoïc Hoguin
That header is deprecated in the context of HTTP.
2017-05-19Add functions for creating WINDOW_UPDATE h2 framesLoïc Hoguin
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.