diff options
author | Loïc Hoguin <[email protected]> | 2017-02-19 09:46:11 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-02-19 09:46:11 +0100 |
commit | 91ae70b06c9cc486ea2c2cf91b94de799ceb53b2 (patch) | |
tree | 37cc4d2dffbaef0e103c1f834e7ae7117ffd51ca /test/handlers/resp_h.erl | |
parent | 87a05a12199cc9f0a569669d96d6c65761e8ff97 (diff) | |
download | cowboy-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/handlers/resp_h.erl')
-rw-r--r-- | test/handlers/resp_h.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/handlers/resp_h.erl b/test/handlers/resp_h.erl index 5e6696e..694f04a 100644 --- a/test/handlers/resp_h.erl +++ b/test/handlers/resp_h.erl @@ -20,7 +20,8 @@ do(<<"set_resp_cookie3">>, Req0, Opts) -> end, {ok, cowboy_req:reply(200, #{}, "OK", Req), Opts}; do(<<"set_resp_cookie4">>, Req0, Opts) -> - Req = cowboy_req:set_resp_cookie(<<"mycookie">>, "myvalue", #{path => cowboy_req:path(Req0)}, Req0), + Req = cowboy_req:set_resp_cookie(<<"mycookie">>, "myvalue", Req0, + #{path => cowboy_req:path(Req0)}), {ok, cowboy_req:reply(200, #{}, "OK", Req), Opts}; do(<<"set_resp_header">>, Req0, Opts) -> Req = cowboy_req:set_resp_header(<<"content-type">>, <<"text/plain">>, Req0), |