mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-06 13:04:53 +08:00
Always use http1 for teams websocket connection (#2119)
This commit is contained in:
parent
3c8f3357b9
commit
bba743a258
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ defmodule Livebook.Teams.WebSocket do
|
|||
{http_scheme, ws_scheme} = parse_scheme(uri)
|
||||
state = %{status: nil, headers: [], body: []}
|
||||
|
||||
with {:ok, conn} <- Mint.HTTP.connect(http_scheme, uri.host, uri.port),
|
||||
with {:ok, conn} <- Mint.HTTP.connect(http_scheme, uri.host, uri.port, protocols: [:http1]),
|
||||
{:ok, conn, ref} <- Mint.WebSocket.upgrade(ws_scheme, conn, @ws_path, headers) do
|
||||
receive_upgrade(conn, ref, state)
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue