Force HTTP for fedsockets

This commit is contained in:
Mark Felder 2020-09-21 10:13:41 -05:00
parent 26859c549c
commit 8afdbcdb1c

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), [