diff options
| author | Dan Engelbrecht <[email protected]> | 2025-03-03 17:53:11 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-03-03 17:53:11 +0100 |
| commit | 1270bfeffbc81b1e4940c5c454ee6acde43e696a (patch) | |
| tree | 9ff53df6b43f2806fb5701b4d10ad37696a1c203 /src/zenhttp/httpclient.cpp | |
| parent | builds download incremental (#290) (diff) | |
| download | zen-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.cpp | 5 |
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") |