From ebd2671963ef9eb4dd8cdf4bdafbb93514b20440 Mon Sep 17 00:00:00 2001 From: Jonathan Gueron Date: Thu, 8 Sep 2016 18:50:27 +0300 Subject: [PATCH] fix build warning src/mod_rest.erl:27: Warning: undefined callback function depends/2 (behaviour 'gen_mod') --- mod_rest/src/mod_rest.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mod_rest/src/mod_rest.erl b/mod_rest/src/mod_rest.erl index 9239025..cac427a 100644 --- a/mod_rest/src/mod_rest.erl +++ b/mod_rest/src/mod_rest.erl @@ -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