diff options
author | Loïc Hoguin <[email protected]> | 2011-03-21 17:52:27 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-03-21 17:52:27 +0100 |
commit | e9781e77f15a8bfa339d53cf6207a2453cb4c322 (patch) | |
tree | 6d79d8a41854c4246faa8fa4b0ecf3c762fd23ce /src | |
parent | e3dc9b269441dfc7499e7b172fc28b14d682d2b7 (diff) | |
download | cowboy-e9781e77f15a8bfa339d53cf6207a2453cb4c322.tar.gz cowboy-e9781e77f15a8bfa339d53cf6207a2453cb4c322.tar.bz2 cowboy-e9781e77f15a8bfa339d53cf6207a2453cb4c322.zip |
Make sure error_response always returns ok.
Diffstat (limited to 'src')
-rw-r--r-- | src/cowboy_http_protocol.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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) -> |