mirror of
https://github.com/ankitects/anki.git
synced 2025-11-15 17:17:11 -05:00
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:
parent
14189a91ba
commit
17480a2c80
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ impl HttpSyncClient {
|
||||||
HttpSyncClient {
|
HttpSyncClient {
|
||||||
sync_key: auth.hkey,
|
sync_key: auth.hkey,
|
||||||
session_key: simple_session_id(),
|
session_key: simple_session_id(),
|
||||||
client: Client::new(),
|
client: Client::builder().http1_only().build().unwrap(),
|
||||||
endpoint: auth
|
endpoint: auth
|
||||||
.endpoint
|
.endpoint
|
||||||
.unwrap_or_else(|| Url::try_from("https://sync.ankiweb.net/").unwrap()),
|
.unwrap_or_else(|| Url::try_from("https://sync.ankiweb.net/").unwrap()),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue