mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Rename Gun's transport_opts to tls_opts
This commit is contained in:
parent
36441d35bd
commit
86c16fdccc
2 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ gun_open(Config, Opts) ->
|
||||||
{ok, ConnPid} = gun:open("localhost", config(port, Config), Opts#{
|
{ok, ConnPid} = gun:open("localhost", config(port, Config), Opts#{
|
||||||
retry => 0,
|
retry => 0,
|
||||||
transport => config(type, Config),
|
transport => config(type, Config),
|
||||||
transport_opts => proplists:get_value(transport_opts, Config, []),
|
tls_opts => proplists:get_value(tls_opts, Config, []),
|
||||||
protocols => [config(protocol, Config)]
|
protocols => [config(protocol, Config)]
|
||||||
}),
|
}),
|
||||||
ConnPid.
|
ConnPid.
|
||||||
|
|
|
@ -186,7 +186,7 @@ cert(Config) ->
|
||||||
do_cert(Config0) ->
|
do_cert(Config0) ->
|
||||||
doc("A client TLS certificate was provided."),
|
doc("A client TLS certificate was provided."),
|
||||||
{CaCert, Cert, Key} = ct_helper:make_certs(),
|
{CaCert, Cert, Key} = ct_helper:make_certs(),
|
||||||
Config = [{transport_opts, [
|
Config = [{tls_opts, [
|
||||||
{cert, Cert},
|
{cert, Cert},
|
||||||
{key, Key},
|
{key, Key},
|
||||||
{cacerts, [CaCert]}
|
{cacerts, [CaCert]}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue