diff options
author | Loïc Hoguin <[email protected]> | 2015-05-06 11:34:37 +0300 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-05-06 11:34:37 +0300 |
commit | 21632944bb7051d3291faacf45861e648a47ca1a (patch) | |
tree | 7adc130ad06979ea7fd92a0c2d4c881fb79949ce /src | |
parent | 817c6ed7c06c4dbc96a9717b036e37e4dbf58c2b (diff) | |
parent | 8fc6906dbbd428cfd52a74a9426f6492952f6683 (diff) | |
download | cowboy-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.erl | 3 |
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, |