opt(download): force cache downloads to use http/1.1 (#1870)

* opt(download): force cache downloads to use http/1.1

* refactor(http): lazily initialize fallback http/1.1 client

* fix(http): keep fallback client decision consistent at startup

* opt: use clone

* fix

* fix

---------

Co-authored-by: My-Responsitories <107370289+My-Responsitories@users.noreply.github.com>
This commit is contained in:
HeXis-YS
2026-03-17 05:43:03 -07:00
committed by GitHub
parent d6579b29ae
commit 7f2682bb7b
3 changed files with 35 additions and 9 deletions

View File

@@ -58,7 +58,7 @@ class DownloadManager {
Response<ResponseBody> response;
try {
response = await Request.dio.get<ResponseBody>(
response = await Request.http11Dio.get<ResponseBody>(
url.http2https,
options: Options(
headers: {'range': 'bytes=$received-'},