aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-21 22:47:37 +0100
committerLoïc Hoguin <[email protected]>2011-03-21 22:47:37 +0100
commit545116edfa963b02227f3a6c8b70f1a1d04f37ce (patch)
treeda8045885b8404407fb1bd9db06432e9228fab6d
parentfdd9d4c0ef37eecbe0ac275e25784c2888164695 (diff)
downloadcowboy-545116edfa963b02227f3a6c8b70f1a1d04f37ce.tar.gz
cowboy-545116edfa963b02227f3a6c8b70f1a1d04f37ce.tar.bz2
cowboy-545116edfa963b02227f3a6c8b70f1a1d04f37ce.zip
Fix spec for cowboy_http_req:reply/4.
-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 24500be..cb09282 100644
--- a/src/cowboy_http_req.erl
+++ b/src/cowboy_http_req.erl
@@ -163,7 +163,7 @@ body(Length, Req=#http_req{socket=Socket, transport=Transport, body_state=waitin
%% Response API.
-spec reply(Code::http_status(), Headers::http_headers(),
- Body::iolist(), Req::#http_req{}) -> ok.
+ Body::iolist(), Req::#http_req{}) -> {ok, Req::#http_req{}}.
%% @todo Don't be naive about the headers!
reply(Code, Headers, Body, Req=#http_req{socket=Socket,
transport=Transport, connection=Connection,