aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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,