From 81cc99d10bab86369f4ae7ea0db948ffad1239d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 13 Oct 2011 16:16:53 +0200 Subject: Add shortcuts to reply functions New functions are reply/2, reply/3, chunked_reply/2 in cowboy_http_req. --- test/chunked_handler.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/chunked_handler.erl') 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}. -- cgit v1.2.3