From d4d232c464c07352f794eebe160fbcb492637e0b Mon Sep 17 00:00:00 2001 From: Ingela Anderton Andin Date: Thu, 4 May 2023 17:38:12 +0200 Subject: inets: httpc - add back http client ssl verify options accidently removed --- lib/inets/src/http_client/httpc.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/inets/src/http_client/httpc.erl b/lib/inets/src/http_client/httpc.erl index b4315f4ba3..8f62b8906c 100644 --- a/lib/inets/src/http_client/httpc.erl +++ b/lib/inets/src/http_client/httpc.erl @@ -1009,12 +1009,14 @@ http_options_default() -> error end, + SslOpts = ssl_verify_host_options(true), + UrlDecodePost = boolfun(), [ {version, {value, "HTTP/1.1"}, #http_options.version, VersionPost}, {timeout, {value, ?HTTP_REQUEST_TIMEOUT}, #http_options.timeout, TimeoutPost}, {autoredirect, {value, true}, #http_options.autoredirect, AutoRedirectPost}, - {ssl, {value, {ssl, []}}, #http_options.ssl, SslPost}, + {ssl, {value, {ssl, SslOpts}}, #http_options.ssl, SslPost}, {proxy_auth, {value, undefined}, #http_options.proxy_auth, ProxyAuthPost}, {relaxed, {value, false}, #http_options.relaxed, RelaxedPost}, {url_encode, {value, false}, #http_options.url_encode, UrlDecodePost}, -- cgit v1.2.1