0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Remove an unused variable

This commit is contained in:
Loïc Hoguin 2017-09-05 13:24:46 +02:00
parent 4fd6e2f7cd
commit d1c210b105
No known key found for this signature in database
GPG key ID: 71366FF21851DF03

View file

@ -635,7 +635,7 @@ reply(Status, Headers, Req) ->
-> Req when Req::req(). -> Req when Req::req().
reply(_, _, _, #{has_sent_resp := _}) -> reply(_, _, _, #{has_sent_resp := _}) ->
error(function_clause); error(function_clause);
reply(Status, Headers, Sendfile = {sendfile, _, 0, _}, Req) reply(Status, Headers, {sendfile, _, 0, _}, Req)
when is_integer(Status); is_binary(Status) -> when is_integer(Status); is_binary(Status) ->
do_reply(Status, Headers#{ do_reply(Status, Headers#{
<<"content-length">> => <<"0">> <<"content-length">> => <<"0">>