fix build warning
src/mod_rest.erl:27: Warning: undefined callback function depends/2 (behaviour 'gen_mod')
This commit is contained in:
parent
65f4267fc1
commit
ebd2671963
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue