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

Explicitly ignore the return value of cowboy_http_req:reply in error_response.

This commit is contained in:
Loïc Hoguin 2011-03-22 12:27:34 +01:00
parent d4c071c2d0
commit c3a36246b5

View file

@ -184,7 +184,7 @@ ensure_response(#http_req{resp_state=waiting}, State) ->
-spec error_response(Code::http_status(), State::#state{}) -> ok.
error_response(Code, #state{socket=Socket,
transport=Transport, connection=Connection}) ->
cowboy_http_req:reply(Code, [], [], #http_req{
_ = cowboy_http_req:reply(Code, [], [], #http_req{
socket=Socket, transport=Transport,
connection=Connection, resp_state=waiting}),
ok.