初步实现

This commit is contained in:
asypost committed 2026-06-23 16:48:14 +08:00
1 parent aace751d01
commit 6e60886fd3
8 files changed
+451 -120

No files matched your search

+2 -2
View File
@@ -252,7 +252,7 @@ namespace seafile
const std::string& token,
const TokenType token_type) const
{
if (const auto download_url = downloadFileUrl(repo_id, path, token, token_type); download_url.has_value())
if (auto download_url = downloadFileUrl(repo_id, path, token, token_type); download_url.has_value())
{
const auto auth = makeAuthToken(token, token_type);
const auto url = cpr::Url{download_url.value()};
@@ -263,7 +263,7 @@ namespace seafile
"bytes={}-{}",
start ? std::to_string(*start) : "",
end ? std::to_string(*end) : "");
header.emplace("range", std::move(range));
header.emplace("range", range);
const auto response = cpr::Get(url, header);
return parseResponse<std::string>(response);
}