aboutsummaryrefslogtreecommitdiffstats
path: root/test/http_handler_stream_body.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-09-16 03:51:07 +0200
committerLoïc Hoguin <[email protected]>2012-09-17 13:56:58 +0200
commit8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63 (patch)
tree916b1c238ce6dea4652e7b50341c37128ba633b2 /test/http_handler_stream_body.erl
parente13ab806eaadd40c72145b5783c7727f2ed88d14 (diff)
downloadcowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.tar.gz
cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.tar.bz2
cowboy-8d5f8db90a10a8ca16f8f17bcb076ff4b93e9c63.zip
Improve consistency of return types for cowboy_req API
The signature of parse_header, body_qs, multipart_data and the set_resp_* functions has changed. See the cowboy_req module edoc for more details.
Diffstat (limited to 'test/http_handler_stream_body.erl')
-rw-r--r--test/http_handler_stream_body.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_handler_stream_body.erl b/test/http_handler_stream_body.erl
index 13221eb..feb4f78 100644
--- a/test/http_handler_stream_body.erl
+++ b/test/http_handler_stream_body.erl
@@ -16,7 +16,7 @@ handle(Req, State=#state{headers=_Headers, body=Body, reply=set_resp}) ->
{ok, Transport, Socket} = cowboy_req:transport(Req),
SFun = fun() -> Transport:send(Socket, Body), sent end,
SLen = iolist_size(Body),
- {ok, Req2} = cowboy_req:set_resp_body_fun(SLen, SFun, Req),
+ Req2 = cowboy_req:set_resp_body_fun(SLen, SFun, Req),
{ok, Req3} = cowboy_req:reply(200, Req2),
{ok, Req3, State}.