Revert "Update mod_post_log parsing url option, so it starts with recent ejabberd"

This reverts commit 21d78a74c1.
This commit is contained in:
Badlop 2021-02-07 23:49:53 +01:00
parent f46182b238
commit a6b3ceccbf
1 changed files with 5 additions and 8 deletions

View File

@ -42,10 +42,7 @@ stop(Host) ->
depends(_Host, _Opts) ->
[].
mod_opt_type(url) ->
fun(Val) when is_binary(Val) -> binary_to_list(Val);
(Val) -> Val
end;
mod_opt_type(url) -> fun binary_to_list/1;
mod_opt_type(ts_header) -> fun binary_to_list/1;
mod_opt_type(from_header) -> fun binary_to_list/1;
mod_opt_type(to_header) -> fun binary_to_list/1;
@ -56,11 +53,11 @@ mod_opt_type(req_options) -> fun(L) when is_list(L) -> L end.
mod_options(_Host) ->
[{url, undefined},
{ts_header, <<"X-Message-Timestamp">>},
{from_header, <<"X-Message-From">>},
{to_header, <<"X-Message-To">>},
{ts_header, "X-Message-Timestamp"},
{from_header, "X-Message-From"},
{to_header, "X-Message-To"},
{headers, []},
{content_type, <<"text/xml">>},
{content_type, "text/xml"},
{http_options, []},
{req_options, []}].