Skip to content

Commit 00f544b

Browse files
authored
port 443 as usable elixir_auth_google.ex
In my project i used port 443, so each time i was a trying to access it via this port the connection was blocked. This solution mighty be simple but it works. need to do: add error handler case server is using lets say port 4000 or 4001.
1 parent a106db4 commit 00f544b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir_auth_google.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ defmodule ElixirAuthGoogle do
2626
`get_baseurl_from_conn/1` derives the base URL from the conn struct
2727
"""
2828
@spec get_baseurl_from_conn(conn) :: String.t()
29-
def get_baseurl_from_conn(%{host: h, port: p, scheme: s}) when p != 80 do
29+
def get_baseurl_from_conn(%{host: h, port: p, scheme: s}) when p != 80 || !=443 do
3030
"#{Atom.to_string(s)}://#{h}:#{p}"
3131
end
3232

0 commit comments

Comments
 (0)