aboutsummaryrefslogtreecommitdiffstats
path: root/test/chunked_handler.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-10-13 16:16:53 +0200
committerLoïc Hoguin <[email protected]>2011-10-13 16:16:53 +0200
commit81cc99d10bab86369f4ae7ea0db948ffad1239d0 (patch)
treeafccf71704b98251a89b3fa042ca2225ecf15520 /test/chunked_handler.erl
parent2a324aca3a589c13b4d73f03f8da65cc3ee36b20 (diff)
downloadcowboy-81cc99d10bab86369f4ae7ea0db948ffad1239d0.tar.gz
cowboy-81cc99d10bab86369f4ae7ea0db948ffad1239d0.tar.bz2
cowboy-81cc99d10bab86369f4ae7ea0db948ffad1239d0.zip
Add shortcuts to reply functions
New functions are reply/2, reply/3, chunked_reply/2 in cowboy_http_req.
Diffstat (limited to 'test/chunked_handler.erl')
-rw-r--r--test/chunked_handler.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/chunked_handler.erl b/test/chunked_handler.erl
index 97ce27c..d246d51 100644
--- a/test/chunked_handler.erl
+++ b/test/chunked_handler.erl
@@ -8,7 +8,7 @@ init({_Transport, http}, Req, _Opts) ->
{ok, Req, undefined}.
handle(Req, State) ->
- {ok, Req2} = cowboy_http_req:chunked_reply(200, [], Req),
+ {ok, Req2} = cowboy_http_req:chunked_reply(200, Req),
cowboy_http_req:chunk("chunked_handler\r\n", Req2),
cowboy_http_req:chunk("works fine!", Req2),
{ok, Req2, State}.