From e9781e77f15a8bfa339d53cf6207a2453cb4c322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 21 Mar 2011 17:52:27 +0100 Subject: Make sure error_response always returns ok. --- src/cowboy_http_protocol.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cowboy_http_protocol.erl b/src/cowboy_http_protocol.erl index a6cedbe..7209be4 100644 --- a/src/cowboy_http_protocol.erl +++ b/src/cowboy_http_protocol.erl @@ -196,7 +196,8 @@ error_response(Code, #state{socket=Socket, transport=Transport, connection=Connection}) -> cowboy_http_req:reply(Code, [], [], #http_req{ socket=Socket, transport=Transport, - connection=Connection, resp_state=waiting}). + connection=Connection, resp_state=waiting}), + ok. -spec error_terminate(Code::http_status(), State::#state{}) -> ok. error_terminate(Code, State) -> -- cgit v1.2.3