Browse Source

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

Loïc Hoguin 14 years ago
parent
commit
c3a36246b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_http_protocol.erl

+ 1 - 1
src/cowboy_http_protocol.erl

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