aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE_data/http_set_resp.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-02-19 09:46:11 +0100
committerLoïc Hoguin <[email protected]>2017-02-19 09:46:11 +0100
commit91ae70b06c9cc486ea2c2cf91b94de799ceb53b2 (patch)
tree37cc4d2dffbaef0e103c1f834e7ae7117ffd51ca /test/http_SUITE_data/http_set_resp.erl
parent87a05a12199cc9f0a569669d96d6c65761e8ff97 (diff)
downloadcowboy-91ae70b06c9cc486ea2c2cf91b94de799ceb53b2.tar.gz
cowboy-91ae70b06c9cc486ea2c2cf91b94de799ceb53b2.tar.bz2
cowboy-91ae70b06c9cc486ea2c2cf91b94de799ceb53b2.zip
Change the order of set_resp_cookie arguments
The Opts value is put last, to be more consistent with the rest of the cowboy_req module. Additionally a test handler was fixed which reduced the number of errors in http_SUITE.
Diffstat (limited to 'test/http_SUITE_data/http_set_resp.erl')
-rw-r--r--test/http_SUITE_data/http_set_resp.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_SUITE_data/http_set_resp.erl b/test/http_SUITE_data/http_set_resp.erl
index 6ac4c8e..e575aab 100644
--- a/test/http_SUITE_data/http_set_resp.erl
+++ b/test/http_SUITE_data/http_set_resp.erl
@@ -12,7 +12,7 @@ init(Req, Opts) ->
end, Req, maps:to_list(Headers)),
Req3 = cowboy_req:set_resp_body(Body, Req2),
Req4 = cowboy_req:set_resp_header(<<"x-cowboy-test">>, <<"ok">>, Req3),
- Req5 = cowboy_req:set_resp_cookie(<<"cake">>, <<"lie">>, [], Req4),
+ Req5 = cowboy_req:set_resp_cookie(<<"cake">>, <<"lie">>, Req4),
case cowboy_req:has_resp_header(<<"x-cowboy-test">>, Req5) of
false -> {ok, Req5, Opts};
true ->