0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix tests for OTP-25+

This commit is contained in:
Loïc Hoguin 2023-03-29 15:17:09 +02:00
parent 30ee75cea1
commit b9d4e05be0
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
4 changed files with 62 additions and 32 deletions

View file

@ -115,7 +115,7 @@ gun_open(Config, Opts) ->
{ok, ConnPid} = gun:open("localhost", config(port, Config), Opts#{
retry => 0,
transport => config(type, Config),
tls_opts => proplists:get_value(tls_opts, Config, []),
tls_opts => [{versions, ['tlsv1.2']}|proplists:get_value(tls_opts, Config, [])],
protocols => [config(protocol, Config)]
}),
ConnPid.