aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-06 11:34:37 +0300
committerLoïc Hoguin <[email protected]>2015-05-06 11:34:37 +0300
commit21632944bb7051d3291faacf45861e648a47ca1a (patch)
tree7adc130ad06979ea7fd92a0c2d4c881fb79949ce /src
parent817c6ed7c06c4dbc96a9717b036e37e4dbf58c2b (diff)
parent8fc6906dbbd428cfd52a74a9426f6492952f6683 (diff)
downloadcowboy-21632944bb7051d3291faacf45861e648a47ca1a.tar.gz
cowboy-21632944bb7051d3291faacf45861e648a47ca1a.tar.bz2
cowboy-21632944bb7051d3291faacf45861e648a47ca1a.zip
Merge branch 'patch-2' of https://github.com/egobrain/cowboy
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 feac388..29eac3b 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -676,7 +676,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,