aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/httpclient.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-03-03 17:53:11 +0100
committerGitHub Enterprise <[email protected]>2025-03-03 17:53:11 +0100
commit1270bfeffbc81b1e4940c5c454ee6acde43e696a (patch)
tree9ff53df6b43f2806fb5701b4d10ad37696a1c203 /src/zenhttp/httpclient.cpp
parentbuilds download incremental (#290) (diff)
downloadzen-1270bfeffbc81b1e4940c5c454ee6acde43e696a.tar.xz
zen-1270bfeffbc81b1e4940c5c454ee6acde43e696a.zip
refactor use chunk sequence download (#291)
* work on chunk sequences on download, not paths * write chunksequences to .tmp file and move when complete * cleanup * Added on the fly validation `zen builds download` of files built from smaller chunks as each file is completed Added `--verify` option to `zen builds upload` to verify all uploaded data once entire upload is complete Added `--verify` option to `zen builds download` to verify all files in target folder once entire download is complete Fixed/improved progress updated Multithreaded part validation * added rates to Write Chunks task * b/s -> bits/s * dont validate partial content as complete payload * handle legacy c# builds
Diffstat (limited to 'src/zenhttp/httpclient.cpp')
-rw-r--r--src/zenhttp/httpclient.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zenhttp/httpclient.cpp b/src/zenhttp/httpclient.cpp
index bb15a6fce..7f7e70fef 100644
--- a/src/zenhttp/httpclient.cpp
+++ b/src/zenhttp/httpclient.cpp
@@ -414,6 +414,11 @@ ValidatePayload(cpr::Response& Response, std::unique_ptr<detail::TempPayloadFile
}
}
+ if (Response.status_code == (long)HttpResponseCode::PartialContent)
+ {
+ return true;
+ }
+
if (auto ContentType = Response.header.find("Content-Type"); ContentType != Response.header.end())
{
if (ContentType->second == "application/x-ue-comp")