diff options
Diffstat (limited to 'src/cowboy_protocol.erl')
-rw-r--r-- | src/cowboy_protocol.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_protocol.erl b/src/cowboy_protocol.erl index 3ac967e..84c4401 100644 --- a/src/cowboy_protocol.erl +++ b/src/cowboy_protocol.erl @@ -494,7 +494,7 @@ error_terminate(Status, State=#state{socket=Socket, transport=Transport, -spec error_terminate(cowboy:http_status(), cowboy_req:req(), #state{}) -> ok. error_terminate(Status, Req, State) -> - cowboy_req:maybe_reply(Status, Req), + _ = cowboy_req:reply(Status, Req), terminate(State). -spec terminate(#state{}) -> ok. |