aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYakov <[email protected]>2015-01-14 18:43:11 +0300
committerKozlov Yakov <[email protected]>2015-02-17 15:31:02 +0300
commit8fc6906dbbd428cfd52a74a9426f6492952f6683 (patch)
tree722bccc5d73155b491d25bbd9179d903c3874868 /src
parent02b1b281785a815ff5b4c7bfc45053f0c786a18c (diff)
downloadcowboy-8fc6906dbbd428cfd52a74a9426f6492952f6683.tar.gz
cowboy-8fc6906dbbd428cfd52a74a9426f6492952f6683.tar.bz2
cowboy-8fc6906dbbd428cfd52a74a9426f6492952f6683.zip
Fix reply/4 spec
There is wrong -spec of reply/4 function 3rd parametr type must be same as [#http_req spec](https://github.com/ninenines/cowboy/blob/master/src/cowboy_req.erl#L140)
Diffstat (limited to 'src')
-rw-r--r--src/cowboy_req.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl
index a197110..46a2fc7 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -720,7 +720,8 @@ reply(Status, Headers, Req=#http_req{resp_body=Body}) ->
reply(Status, Headers, Body, Req).
-spec reply(cowboy:http_status(), cowboy:http_headers(),
- iodata() | {non_neg_integer() | resp_body_fun()}, Req)
+ iodata() | resp_body_fun() | {non_neg_integer(), resp_body_fun()}
+ | {chunked, resp_chunked_fun()}, Req)
-> Req when Req::req().
reply(Status, Headers, Body, Req=#http_req{
socket=Socket, transport=Transport,