mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Update Cowlib to 2.12.1
This commit is contained in:
parent
b9d4e05be0
commit
4958af5745
3 changed files with 5 additions and 5 deletions
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ CT_OPTS += -ct_hooks cowboy_ct_hook [] # -boot start_sasl
|
|||
LOCAL_DEPS = crypto
|
||||
|
||||
DEPS = cowlib ranch
|
||||
dep_cowlib = git https://github.com/ninenines/cowlib 2.11.0
|
||||
dep_cowlib = git https://github.com/ninenines/cowlib 2.12.1
|
||||
dep_ranch = git https://github.com/ninenines/ranch 1.8.0
|
||||
|
||||
DOC_DEPS = asciideck
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{deps, [
|
||||
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.11.0"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.8.0"}}
|
||||
{cowlib,".*",{git,"https://github.com/ninenines/cowlib","2.12.1"}},{ranch,".*",{git,"https://github.com/ninenines/ranch","1.8.0"}}
|
||||
]}.
|
||||
{erl_opts, [debug_info,warn_export_vars,warn_shadow_vars,warn_obsolete_guard,warn_missing_spec,warn_untyped_record]}.
|
||||
|
|
|
@ -768,18 +768,18 @@ set_resp_cookie(Config) ->
|
|||
doc("Response using set_resp_cookie."),
|
||||
%% Single cookie, no options.
|
||||
{200, Headers1, _} = do_get("/resp/set_resp_cookie3", Config),
|
||||
{_, <<"mycookie=myvalue; Version=1">>}
|
||||
{_, <<"mycookie=myvalue">>}
|
||||
= lists:keyfind(<<"set-cookie">>, 1, Headers1),
|
||||
%% Single cookie, with options.
|
||||
{200, Headers2, _} = do_get("/resp/set_resp_cookie4", Config),
|
||||
{_, <<"mycookie=myvalue; Version=1; Path=/resp/set_resp_cookie4">>}
|
||||
{_, <<"mycookie=myvalue; Path=/resp/set_resp_cookie4">>}
|
||||
= lists:keyfind(<<"set-cookie">>, 1, Headers2),
|
||||
%% Multiple cookies.
|
||||
{200, Headers3, _} = do_get("/resp/set_resp_cookie3/multiple", Config),
|
||||
[_, _] = [H || H={<<"set-cookie">>, _} <- Headers3],
|
||||
%% Overwrite previously set cookie.
|
||||
{200, Headers4, _} = do_get("/resp/set_resp_cookie3/overwrite", Config),
|
||||
{_, <<"mycookie=overwrite; Version=1">>}
|
||||
{_, <<"mycookie=overwrite">>}
|
||||
= lists:keyfind(<<"set-cookie">>, 1, Headers4),
|
||||
ok.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue