From 545116edfa963b02227f3a6c8b70f1a1d04f37ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 21 Mar 2011 22:47:37 +0100 Subject: Fix spec for cowboy_http_req:reply/4. --- src/cowboy_http_req.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cowboy_http_req.erl') 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, -- cgit v1.2.3