aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_upload.erl
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2018-07-18 18:16:42 +0200
committerHolger Weiss <holger@zedat.fu-berlin.de>2018-07-18 18:16:42 +0200
commit8ad6afd652bdc6b3d582df3981770507b897b19f (patch)
tree3167cd058130ac7e6a9c939798e6c8a84304ee41 /src/mod_http_upload.erl
parentMerge pull request #2537 from rouen-sk/patch-1 (diff)
mod_http_upload: Deprecate 'service_url' option
Users should migrate to the 'external_secret' interface.
Diffstat (limited to 'src/mod_http_upload.erl')
-rw-r--r--src/mod_http_upload.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl
index 8ed47f69d..ed29299f6 100644
--- a/src/mod_http_upload.erl
+++ b/src/mod_http_upload.erl
@@ -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) ->