1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-05 02:29:34 +02:00

Have consistent schema type in misc:uri_parse

This commit is contained in:
Paweł Chmielowski 2022-05-06 10:06:13 +02:00
parent bc9e5c5363
commit 3d4f2d365f
2 changed files with 2 additions and 2 deletions

View file

@ -359,7 +359,7 @@ mod_opt_type(via) ->
fun(URI) ->
{ok, Type, Host, Port, _, _} =
misc:uri_parse(URI),
{Type, {unicode:characters_to_binary(Host), Port}}
{list_to_atom(Type), {unicode:characters_to_binary(Host), Port}}
end))(U)
end, [unique]).