From a36515d74df1fc90346f328867ba6fcfc11cde82 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Fri, 25 Sep 2015 17:05:18 +0200 Subject: [PATCH] mod_http_upload: Also start 'asn1' application If an HTTPS service_url is specified, start the 'asn1' application as well, as 'public_key' depends on it. Once mod_http_upload requires Erlang/OTP R16B02 or newer, we can use the following calls instead: {ok, _} = application:ensure_all_started(inets), {ok, _} = application:ensure_all_started(ssl). --- mod_http_upload/src/mod_http_upload.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index 61f14d7..6d5b975 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -245,6 +245,7 @@ init({ServerHost, Opts}) -> <<"https://", _/binary>> -> application:start(inets), application:start(crypto), + application:start(asn1), application:start(public_key), application:start(ssl) end,