diff options
author | Pierre Bourdon <delroth@gmail.com> | 2024-05-11 14:06:10 +0200 |
---|---|---|
committer | Pierre Bourdon <delroth@gmail.com> | 2024-05-11 14:49:23 +0200 |
commit | 38d825b21e425b0f0a64304ff5bfe4dfbeaf9e97 (patch) | |
tree | 9a8f727db79406917143d18026376562a87bbe65 /src/libstore/filetransfer.cc | |
parent | f6dc40cd1c3cdb38d104fb18ca76b9acf374190a (diff) |
filetransfer: fix decompression regression from 121edecf
121edecf654ec084274ba1a779c7140082f4115d added a new state field to
carry over content encoding settings from transfer to sink creation, but
never actually set that field.
Change-Id: I714b2efe745561e851b78a4791479b3501db8c72
Diffstat (limited to 'src/libstore/filetransfer.cc')
-rw-r--r-- | src/libstore/filetransfer.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/filetransfer.cc b/src/libstore/filetransfer.cc index 8d508facb..492463a61 100644 --- a/src/libstore/filetransfer.cc +++ b/src/libstore/filetransfer.cc @@ -761,6 +761,10 @@ struct curlFileTransfer : public FileTransfer state.wait_for(state->request, std::chrono::seconds(10)); } + if (state->encoding.empty()) { + state->encoding = transfer.encoding; + } + /* Append data to the buffer and wake up the calling thread. */ state->data.append(data); |