diff options
author | Loïc Hoguin <[email protected]> | 2011-10-13 16:16:53 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-10-13 16:16:53 +0200 |
commit | 81cc99d10bab86369f4ae7ea0db948ffad1239d0 (patch) | |
tree | afccf71704b98251a89b3fa042ca2225ecf15520 /test/http_handler_long_polling.erl | |
parent | 2a324aca3a589c13b4d73f03f8da65cc3ee36b20 (diff) | |
download | cowboy-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/http_handler_long_polling.erl')
-rw-r--r-- | test/http_handler_long_polling.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_handler_long_polling.erl b/test/http_handler_long_polling.erl index 374e244..e838619 100644 --- a/test/http_handler_long_polling.erl +++ b/test/http_handler_long_polling.erl @@ -12,7 +12,7 @@ handle(_Req, _State) -> exit(badarg). info(timeout, Req, 0) -> - {ok, Req2} = cowboy_http_req:reply(102, [], [], Req), + {ok, Req2} = cowboy_http_req:reply(102, Req), {ok, Req2, 0}; info(timeout, Req, State) -> erlang:send_after(500, self(), timeout), |