Force HTTP for fedsockets

This commit is contained in:
Mark Felder 2020-09-21 10:13:41 -05:00
parent 26859c549c
commit 8afdbcdb1c
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ def initiate_connection(uri) do
%{host: host, port: port, path: path} = URI.parse(ws_uri)
with {:ok, conn_pid} <- :gun.open(to_charlist(host), port),
with {:ok, conn_pid} <- :gun.open(to_charlist(host), port, %{protocols: [:http]}),
{:ok, _} <- :gun.await_up(conn_pid),
reference <-
:gun.get(conn_pid, to_charlist(path), [