Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
That header is deprecated in the context of HTTP.
|
|
|
|
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.
|