Remove unreachable WebSocket protocol match
This commit is contained in:
parent
9dd02ecd50
commit
4c9fc6287e
1 changed files with 0 additions and 1 deletions
|
|
@ -94,7 +94,6 @@ defmodule Pleroma.Web.MastodonAPI.WebsocketPlug do
|
||||||
[protocols | _] ->
|
[protocols | _] ->
|
||||||
case Plug.Conn.Utils.list(protocols) do
|
case Plug.Conn.Utils.list(protocols) do
|
||||||
[protocol | _] -> put_resp_header(conn, "sec-websocket-protocol", protocol)
|
[protocol | _] -> put_resp_header(conn, "sec-websocket-protocol", protocol)
|
||||||
nil -> conn
|
|
||||||
[] -> conn
|
[] -> conn
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue