diff options
author | Ingela Anderton Andin <ingela@erlang.org> | 2023-05-05 06:53:30 +0200 |
---|---|---|
committer | Ingela Anderton Andin <ingela@erlang.org> | 2023-05-05 06:53:30 +0200 |
commit | 1cee2a39c7ef1606f10f65b11bd93787b3df8741 (patch) | |
tree | d59156767e36ecfd748a7c4d3b7044077de05c03 /lib | |
parent | 2e5df6e84f3622a269f1dfbc2b80eb5e6543539e (diff) | |
parent | d4d232c464c07352f794eebe160fbcb492637e0b (diff) | |
download | erlang-1cee2a39c7ef1606f10f65b11bd93787b3df8741.tar.gz |
Merge branch 'ingela/inets/httpc-put-back-default-ssl-opts'
* ingela/inets/httpc-put-back-default-ssl-opts:
inets: httpc - add back http client ssl verify options accidently removed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inets/src/http_client/httpc.erl | 4 |
1 files changed, 3 insertions, 1 deletions
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}, |