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

Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1

This commit is contained in:
Evgeniy Khramtsov 2016-09-24 23:34:28 +03:00
parent 58969fb854
commit fa31e3ef23
32 changed files with 73 additions and 71 deletions

View file

@ -267,7 +267,7 @@ process(_Path, Request) ->
get_api_version(#request{path = Path}) ->
get_api_version(lists:reverse(Path));
get_api_version([<<"v", String/binary>> | Tail]) ->
case catch jlib:binary_to_integer(String) of
case catch binary_to_integer(String) of
N when is_integer(N) ->
N;
_ ->