mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 20:30:23 +00:00
Explicitly ignore the return value of cowboy_http_req:reply in error_response.
This commit is contained in:
parent
d4c071c2d0
commit
c3a36246b5
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ ensure_response(#http_req{resp_state=waiting}, State) ->
|
||||||
-spec error_response(Code::http_status(), State::#state{}) -> ok.
|
-spec error_response(Code::http_status(), State::#state{}) -> ok.
|
||||||
error_response(Code, #state{socket=Socket,
|
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.
|
ok.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue