1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-09 03:56:01 +01:00

libstore/filetransfer: Add HttpMethod::PUT

This got lost in f1968ea38e and
now we had incorrect logs that confused "downloading" when we were
in fact "uploading" things.
This commit is contained in:
Sergei Zimmerman 2025-10-29 02:48:26 +03:00
parent 70176ed317
commit ae49074548
No known key found for this signature in database
4 changed files with 8 additions and 2 deletions

View file

@ -141,7 +141,7 @@ void HttpBinaryCacheStore::upsertFile(
uint64_t sizeHint)
{
auto req = makeRequest(path);
req.method = HttpMethod::PUT;
auto data = StreamToSourceAdapter(istream).drain();
auto compressionMethod = getCompressionMethod(path);