diff options
Diffstat (limited to 'src')
-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); |