mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +01:00
Merge pull request #14407 from NixOS/fix-upload-put-http
libstore/filetransfer: Add HttpMethod::PUT
This commit is contained in:
commit
194c21fc82
4 changed files with 8 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue