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:
parent
e3dc9b2694
commit
e9781e77f1
1 changed files with 2 additions and 1 deletions
|
@ -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) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue