aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
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 b3bc375..eb3a939 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -863,7 +863,8 @@ set_resp_body_fun(StreamFun, Req) when is_function(StreamFun) ->
%% fewer bytes than declared the behaviour is undefined.
-spec set_resp_body_fun(non_neg_integer(), resp_body_fun(), Req)
-> Req when Req::req().
-set_resp_body_fun(StreamLen, StreamFun, Req) when is_integer(StreamLen), is_function(StreamFun) ->
+set_resp_body_fun(StreamLen, StreamFun, Req)
+ when is_integer(StreamLen), is_function(StreamFun) ->
Req#http_req{resp_body={StreamLen, StreamFun}}.
%% @doc Return whether the given header has been set for the response.