From 38d825b21e425b0f0a64304ff5bfe4dfbeaf9e97 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Sat, 11 May 2024 14:06:10 +0200 Subject: [PATCH] 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 --- src/libstore/filetransfer.cc | 4 ++++ 1 file changed, 4 insertions(+) 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);