Age | Commit message (Collapse) | Author |
|
See also https://github.com/erlang/otp/pull/883
|
|
https://github.com/danielwhite/cowlib
|
|
* Update copyright years.
* Update erlang.mk.
* Fix triq testing.
|
|
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.
|
|
Also rename the macros for inline lowercasing to ?LOWER,
and move the type detection macros to cow_parse.hrl.
|
|
RFC 1341 does not specify this and indeed some upload clients (for example Flash) do not terminate the request with line breaks
|
|
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.
|
|
This is a new implementation that has been measured to be up
to 33% faster than the implementation that was in Cowboy.
|