From 17480a2c8042996c259cc4b261e0ebdb35a702de Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 28 Jan 2023 20:23:51 +1000 Subject: [PATCH] Use HTTP/1.1 for syncing HTTP2 + a request body size not being declared up front was creating extra work for AnkiWeb. --- rslib/src/sync/http_client/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/sync/http_client/mod.rs b/rslib/src/sync/http_client/mod.rs index 6698240e0..3aa099b96 100644 --- a/rslib/src/sync/http_client/mod.rs +++ b/rslib/src/sync/http_client/mod.rs @@ -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()),