Skip to content

Commit 480c69e

Browse files
committed
Get compilation with Erlang/OTP 21 working.
1 parent 6a37f91 commit 480c69e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

rebar.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
{deps,
55
[{cloudi_core, ".*",
66
{git, "https://github.com/CloudI/cloudi_core.git",
7-
{tag, "v1.7.2"}}},
7+
{branch, "master"}}},
88
{cowboy, ".*",
99
{git, "https://github.com/ninenines/cowboy.git",
1010
{tag, "1.0.1"}}},
1111
{uuid, ".*",
1212
{git, "https://github.com/okeuday/uuid.git",
13-
{tag, "v1.7.2"}}},
13+
{branch, "master"}}},
1414
{trie, ".*",
1515
{git, "https://github.com/okeuday/trie.git",
1616
{tag, "v1.7.2"}}}]}.

src/cloudi_http_cowboy_handler.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%%%
99
%%% MIT License
1010
%%%
11-
%%% Copyright (c) 2012-2017 Michael Truog <mjtruog at gmail dot com>
11+
%%% Copyright (c) 2012-2018 Michael Truog <mjtruog at gmail dot com>
1212
%%%
1313
%%% Permission is hereby granted, free of charge, to any person obtaining a
1414
%%% copy of this software and associated documentation files (the "Software"),
@@ -29,8 +29,8 @@
2929
%%% DEALINGS IN THE SOFTWARE.
3030
%%%
3131
%%% @author Michael Truog <mjtruog [at] gmail (dot) com>
32-
%%% @copyright 2012-2017 Michael Truog
33-
%%% @version 1.7.2 {@date} {@time}
32+
%%% @copyright 2012-2018 Michael Truog
33+
%%% @version 1.7.3 {@date} {@time}
3434
%%%------------------------------------------------------------------------
3535

3636
-module(cloudi_http_cowboy_handler).
@@ -208,7 +208,7 @@ handle(Req0,
208208
true ->
209209
% handle custom methods, if they occur
210210
NameIncoming ++ [$/ |
211-
string:to_lower(erlang:binary_to_list(Method))]
211+
cloudi_string:lowercase(erlang:binary_to_list(Method))]
212212
end,
213213
PeerShort = erlang:list_to_binary(inet_parse:ntoa(ClientIpAddr)),
214214
PeerLong = cloudi_ip_address:to_binary(ClientIpAddr),

0 commit comments

Comments
 (0)