aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-04-14 14:13:26 +0200
committerLoïc Hoguin <[email protected]>2011-04-14 14:13:26 +0200
commit7f35f693fcdd0d174e26f8ff68865ca94bd002d3 (patch)
tree4b713f5059d5b54c14085dad429a2e7757ce463a
parentc32db277c82054597ac4200424fa4cbe55448ea8 (diff)
downloadcowboy-7f35f693fcdd0d174e26f8ff68865ca94bd002d3.tar.gz
cowboy-7f35f693fcdd0d174e26f8ff68865ca94bd002d3.tar.bz2
cowboy-7f35f693fcdd0d174e26f8ff68865ca94bd002d3.zip
Fix specs for cowboy_http_req:reply/4.
Body is iodata(), not iolist().
-rw-r--r--src/cowboy_http_req.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl
index 4907503..2f52eeb 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -173,7 +173,7 @@ body_qs(Req) ->
%% Response API.
-spec reply(Code::http_status(), Headers::http_headers(),
- Body::iolist(), Req::#http_req{}) -> {ok, Req::#http_req{}}.
+ Body::iodata(), Req::#http_req{}) -> {ok, Req::#http_req{}}.
reply(Code, Headers, Body, Req=#http_req{socket=Socket,
transport=Transport, connection=Connection,
resp_state=waiting}) ->