summaryrefslogtreecommitdiff
path: root/src/mod_http_api.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-09-24 23:34:28 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2016-09-24 23:34:28 +0300
commitfa31e3ef2321e3901d167d3654693b85313acf08 (patch)
treea0cc9c146661887ef0b1440a103484fa5684e044 /src/mod_http_api.erl
parentImprove namespace handling (diff)
Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1
Diffstat (limited to 'src/mod_http_api.erl')
-rw-r--r--src/mod_http_api.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl
index f3a69aa8..1578be96 100644
--- a/src/mod_http_api.erl
+++ b/src/mod_http_api.erl
@@ -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;
_ ->