mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00

This change makes the dependency on quoted optional by adding a minimal urldecode function to cowboy. A protocol option for setting the urldecoding function has been added to the cowboy_http_protocol module. The default value for this option is set to be equivalent to the default settings for quoted. {fun cowboy_http:urldecode/2, crash} A note has been added in the README to document how to use quoted instead of this function. A field to store this option value has been added to the state record in the cowboy_http_protocol module and the http_req record in include/http.hrl Functions that previously used quoted:from_url/1 has been updated to require an equivalent function in addition to the previously required arguments. This change removes a C compiler from the build requirements of cowboy. It also removes the requirement to cross compile the code if the target arch/OS is different from the arch/OS used to build it.
12 lines
279 B
Erlang
12 lines
279 B
Erlang
{cover_enabled, true}.
|
|
{deps, [
|
|
{proper, "1.0",
|
|
{git, "git://github.com/manopapad/proper.git", {tag, "v1.0"}}}
|
|
]}.
|
|
{eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}.
|
|
{erl_opts, [
|
|
%% bin_opt_info,
|
|
%% warn_missing_spec,
|
|
warnings_as_errors,
|
|
warn_export_all
|
|
]}.
|