mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix setting tls early data
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
922087c79a
commit
4b18a61223
1 changed files with 1 additions and 3 deletions
|
@ -142,13 +142,11 @@ impl Client {
|
||||||
for certificate in certificates {
|
for certificate in certificates {
|
||||||
builder = builder.add_root_certificate(certificate.0);
|
builder = builder.add_root_certificate(certificate.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
builder = builder.tls_early_data(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(reqwest_unstable, feature = "http3"))]
|
#[cfg(all(reqwest_unstable, feature = "http3"))]
|
||||||
{
|
{
|
||||||
builder = builder.http3_congestion_bbr();
|
builder = builder.http3_congestion_bbr().tls_early_data(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
builder
|
builder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue