mastodon websocket: return errors using ok, not stop
This commit is contained in:
parent
388a3f4ca2
commit
28b4093233
1 changed files with 2 additions and 2 deletions
|
@ -37,12 +37,12 @@ defmodule Pleroma.Web.MastodonAPI.WebsocketHandler do
|
|||
{:error, code} ->
|
||||
Logger.debug("#{__MODULE__} denied connection: #{inspect(code)} - #{inspect(req)}")
|
||||
{:ok, req} = :cowboy_req.reply(code, req)
|
||||
{:stop, req}
|
||||
{:ok, req, state}
|
||||
|
||||
error ->
|
||||
Logger.debug("#{__MODULE__} denied connection: #{inspect(error)} - #{inspect(req)}")
|
||||
{:ok, req} = :cowboy_req.reply(400, req)
|
||||
{:stop, req}
|
||||
{:ok, req, state}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue