From c3a36246b5e1bb46257165ccbdf3ca3d37b5be38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Tue, 22 Mar 2011 12:27:34 +0100 Subject: Explicitly ignore the return value of cowboy_http_req:reply in error_response. --- src/cowboy_http_protocol.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cowboy_http_protocol.erl') diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index 2ac4e54..9bb22c3 100644 --- a/src/cowboy_http_protocol.erl +++ b/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. 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. -- cgit v1.2.3