diff options
author | Loïc Hoguin <[email protected]> | 2011-03-21 22:47:37 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-21 22:47:37 +0100 |
commit | 545116edfa963b02227f3a6c8b70f1a1d04f37ce (patch) | |
tree | da8045885b8404407fb1bd9db06432e9228fab6d | |
parent | fdd9d4c0ef37eecbe0ac275e25784c2888164695 (diff) | |
download | cowboy-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.erl | 2 |
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, |