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).
This commit is contained in:
Holger Weiss 2015-09-25 17:05:18 +02:00
parent de035cefff
commit a36515d74d
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ init({ServerHost, Opts}) ->
<<"https://", _/binary>> -> <<"https://", _/binary>> ->
application:start(inets), application:start(inets),
application:start(crypto), application:start(crypto),
application:start(asn1),
application:start(public_key), application:start(public_key),
application:start(ssl) application:start(ssl)
end, end,