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:
parent
58969fb854
commit
fa31e3ef23
32 changed files with 73 additions and 71 deletions
|
@ -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;
|
||||
_ ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue