aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2011-03-21 17:52:27 +0100
committerLoïc Hoguin <[email protected]>2011-03-21 17:52:27 +0100
commite9781e77f15a8bfa339d53cf6207a2453cb4c322 (patch)
tree6d79d8a41854c4246faa8fa4b0ecf3c762fd23ce /src
parente3dc9b269441dfc7499e7b172fc28b14d682d2b7 (diff)
downloadcowboy-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.erl3
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) ->