aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_SUITE.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-12-07 11:54:57 +0100
committerLoïc Hoguin <[email protected]>2011-12-07 11:54:57 +0100
commitce92ab1e633408b0d6b2d4bb4ba61d965208ef3c (patch)
treea41bcfb2daca5cfbf35840da216a5029ba99b381 /test/http_SUITE.erl
parenta12a910341dd22bd27096b50edf3d9820bc90384 (diff)
downloadcowboy-ce92ab1e633408b0d6b2d4bb4ba61d965208ef3c.tar.gz
cowboy-ce92ab1e633408b0d6b2d4bb4ba61d965208ef3c.tar.bz2
cowboy-ce92ab1e633408b0d6b2d4bb4ba61d965208ef3c.zip
Add cowboy_http_req:set_resp_cookie/4
Pretty much just an alias for a combination of set_resp_header and cookie.
Diffstat (limited to 'test/http_SUITE.erl')
-rw-r--r--test/http_SUITE.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 2db6ff4..8fdc52d 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -505,7 +505,8 @@ set_resp_header(Config) ->
ok = gen_tcp:send(Socket, "GET /set_resp/header HTTP/1.1\r\n"
"Host: localhost\r\nConnection: close\r\n\r\n"),
{ok, Data} = gen_tcp:recv(Socket, 0, 6000),
- {_Start, _Length} = binary:match(Data, <<"Vary: Accept">>).
+ {_, _} = binary:match(Data, <<"Vary: Accept">>),
+ {_, _} = binary:match(Data, <<"Set-Cookie: ">>).
set_resp_overwrite(Config) ->
{port, Port} = lists:keyfind(port, 1, Config),