forked from YokaiRick/akkoma
Apply suggestion to lib/pleroma/web/mastodon_api/websocket_handler.ex
This commit is contained in:
parent
5bd0717de2
commit
733b73b71c
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def init(%{qs: qs} = req, state) do
|
|||
{:ok, user} <- allow_request(stream, [access_token, sec_websocket]),
|
||||
topic when is_binary(topic) <- expand_topic(stream, params) do
|
||||
req =
|
||||
if sec_websocket != nil do
|
||||
if sec_websocket do
|
||||
:cowboy_req.set_resp_header("sec-websocket-protocol", sec_websocket, req)
|
||||
else
|
||||
req
|
||||
|
|
Loading…
Reference in a new issue