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:
parent
de035cefff
commit
a36515d74d
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue