25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_http_upload: Deprecate 'service_url' option

Users should migrate to the 'external_secret' interface.
This commit is contained in:
Holger Weiss 2018-07-18 18:16:42 +02:00
parent 7fed5a3eb6
commit 8ad6afd652

View File

@ -183,7 +183,10 @@ mod_opt_type(get_url) ->
end;
mod_opt_type(service_url) ->
fun(undefined) -> undefined;
(URL) -> misc:try_url(URL)
(URL) ->
?WARNING_MSG("option 'service_url' is deprecated, consider unsing "
"the 'external_secret' interface instead", []),
misc:try_url(URL)
end;
mod_opt_type(custom_headers) ->
fun(Headers) ->