mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Have consistent schema type in misc:uri_parse
This commit is contained in:
parent
bc9e5c5363
commit
3d4f2d365f
@ -63,7 +63,7 @@ uri_parse(URL) when is_binary(URL) ->
|
||||
uri_parse(URL) ->
|
||||
case http_uri:parse(URL) of
|
||||
{ok, {Scheme, _UserInfo, Host, Port, Path, Query}} ->
|
||||
{ok, Scheme, Host, Port, Path, Query};
|
||||
{ok, atom_to_list(Scheme), Host, Port, Path, Query};
|
||||
{error, _} = E ->
|
||||
E
|
||||
end.
|
||||
|
@ -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]).
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user