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,
|
-export([start/2,
|
||||||
stop/1,
|
stop/1,
|
||||||
|
depends/2,
|
||||||
split_line/1,
|
split_line/1,
|
||||||
process/2,
|
process/2,
|
||||||
mod_opt_type/1]).
|
mod_opt_type/1]).
|
||||||
|
@ -45,6 +46,9 @@ start(_Host, _Opts) ->
|
||||||
stop(_Host) ->
|
stop(_Host) ->
|
||||||
ok.
|
ok.
|
||||||
|
|
||||||
|
depends(_Host, _Opts) ->
|
||||||
|
[].
|
||||||
|
|
||||||
process([], #request{method = 'POST', data = Data, host = Host, ip = ClientIp}) ->
|
process([], #request{method = 'POST', data = Data, host = Host, ip = ClientIp}) ->
|
||||||
try
|
try
|
||||||
{ClientAddress, _PortNumber} = ClientIp,
|
{ClientAddress, _PortNumber} = ClientIp,
|
||||||
|
|
Loading…
Reference in New Issue