Skip to content

Commit

Permalink
Merge pull request #12 from emqx/20240815-fix-ssl-handshake-failure
Browse files Browse the repository at this point in the history
fix: tls connection fails when we supply any ssl options to httpc
  • Loading branch information
id committed Aug 15, 2024
2 parents 7d5b7ac + 4eb5ab0 commit 2ca2822
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erlazure.erl
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ execute_request(ServiceContext = #service_context{}, ReqContext = #req_context{}

Response = httpc:request(ReqContext#req_context.method,
erlazure_http:create_request(ReqContext, [AuthHeader | Headers1]),
[{version, "HTTP/1.1"}, {ssl, [{versions, ['tlsv1.2']}]}],
[{version, "HTTP/1.1"}],
[{sync, true}, {body_format, binary}, {headers_as_is, true}]),
case Response of
{ok, {{_, Code, _}, _, Body}}
Expand Down

0 comments on commit 2ca2822

Please sign in to comment.