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

Make sure error_response always returns ok.

This commit is contained in:
Loïc Hoguin 2011-03-21 17:52:27 +01:00
parent e3dc9b2694
commit e9781e77f1

View file

@ -196,7 +196,8 @@ 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.
-spec error_terminate(Code::http_status(), State::#state{}) -> ok. -spec error_terminate(Code::http_status(), State::#state{}) -> ok.
error_terminate(Code, State) -> error_terminate(Code, State) ->