Use HTTP/1.1 for syncing

HTTP2 + a request body size not being declared up front was creating extra
work for AnkiWeb.
This commit is contained in:
Damien Elmes 2023-01-28 20:23:51 +10:00
parent 14189a91ba
commit 17480a2c80

View File

@ -40,7 +40,7 @@ impl HttpSyncClient {
HttpSyncClient {
sync_key: auth.hkey,
session_key: simple_session_id(),
client: Client::new(),
client: Client::builder().http1_only().build().unwrap(),
endpoint: auth
.endpoint
.unwrap_or_else(|| Url::try_from("https://sync.ankiweb.net/").unwrap()),