fix build warning

src/mod_rest.erl:27: Warning: undefined callback function depends/2 (behaviour 'gen_mod')
This commit is contained in:
Jonathan Gueron 2016-09-08 18:50:27 +03:00 committed by GitHub
parent 65f4267fc1
commit ebd2671963
1 changed files with 4 additions and 0 deletions

View File

@ -28,6 +28,7 @@
-export([start/2,
stop/1,
depends/2,
split_line/1,
process/2,
mod_opt_type/1]).
@ -44,6 +45,9 @@ start(_Host, _Opts) ->
stop(_Host) ->
ok.
depends(_Host, _Opts) ->
[].
process([], #request{method = 'POST', data = Data, host = Host, ip = ClientIp}) ->
try